Fix Button not updating

This commit is contained in:
Maroxy 2021-10-24 08:06:12 +02:00
parent e11beb4a72
commit e75952ca68

View file

@ -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;