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;