From bdb09bb912342c22bde77d222d19a41bf8f50980 Mon Sep 17 00:00:00 2001 From: smartfrigde <37928912+smartfrigde@users.noreply.github.com> Date: Tue, 14 Jun 2022 14:53:26 +0200 Subject: [PATCH] Remove unwanted getLang handlers --- src/ipc.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/ipc.ts b/src/ipc.ts index 1248891..c3a9e01 100644 --- a/src/ipc.ts +++ b/src/ipc.ts @@ -14,9 +14,6 @@ export function registerIpc() { ipcMain.on("setLang", (event, lang: string) => { setLang(lang); }); - ipcMain.on("getLang", (event, object: string) => { - getLang(object); - }); ipcMain.on("open-external-link", (event, href: string) => { shell.openExternal(href); }); @@ -60,9 +57,6 @@ export function registerIpc() { ipcMain.on("channel", async (event) => { event.returnValue = await getConfig("channel"); }); - ipcMain.handle("getLang", (event, toGet: string) => { - return getLang(toGet); - }); ipcMain.on("clientmod", async (event, arg) => { event.returnValue = await getConfig("mods"); });