Remove unwanted getLang handlers

This commit is contained in:
smartfrigde 2022-06-14 14:53:26 +02:00
parent 7f53710d6a
commit bdb09bb912

View file

@ -14,9 +14,6 @@ export function registerIpc() {
ipcMain.on("setLang", (event, lang: string) => { ipcMain.on("setLang", (event, lang: string) => {
setLang(lang); setLang(lang);
}); });
ipcMain.on("getLang", (event, object: string) => {
getLang(object);
});
ipcMain.on("open-external-link", (event, href: string) => { ipcMain.on("open-external-link", (event, href: string) => {
shell.openExternal(href); shell.openExternal(href);
}); });
@ -60,9 +57,6 @@ export function registerIpc() {
ipcMain.on("channel", async (event) => { ipcMain.on("channel", async (event) => {
event.returnValue = await getConfig("channel"); event.returnValue = await getConfig("channel");
}); });
ipcMain.handle("getLang", (event, toGet: string) => {
return getLang(toGet);
});
ipcMain.on("clientmod", async (event, arg) => { ipcMain.on("clientmod", async (event, arg) => {
event.returnValue = await getConfig("mods"); event.returnValue = await getConfig("mods");
}); });