From e75952ca68079ba9a4c80711b230e93ff38011e9 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Sun, 24 Oct 2021 08:06:12 +0200 Subject: [PATCH] Fix Button not updating --- src/ts/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ts/index.ts b/src/ts/index.ts index 0438930..4b9cda6 100644 --- a/src/ts/index.ts +++ b/src/ts/index.ts @@ -37,7 +37,8 @@ $(() => { ipcRenderer.on('change-lang', (event: void, data: any) => { LauncherUI.updateBackground(); - LauncherUI.updateLang(); + // Needs data.lang in the arguments since the button doesn't get updated otherwise. + LauncherUI.updateLang(data.lang); }); let rpc: any;