Skip to content

Commit

Permalink
relaunch app on change of language setting natcap#1168
Browse files Browse the repository at this point in the history
  • Loading branch information
emlys committed Jul 20, 2023
1 parent 9a8d547 commit aabad5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workbench/src/main/setupChangeLanguage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Store from 'electron-store';
import { ipcMain } from 'electron';
import { app, ipcMain } from 'electron';
import { getLogger } from './logger';
import { ipcMainChannels } from './ipcMainChannels';

Expand All @@ -18,6 +18,8 @@ export default function setupChangeLanguage() {
(e, languageCode) => {
logger.debug('changing language to', languageCode);
store.set('language', languageCode);
app.relaunch();
app.exit();
}
);
}

0 comments on commit aabad5b

Please sign in to comment.