Merge pull request #561 from Araxeus/fix-restart-on-config-change

fix "restart app on config change" option
This commit is contained in:
th-ch
2022-02-09 23:40:57 +01:00
committed by GitHub
12 changed files with 54 additions and 40 deletions

View File

@ -342,12 +342,6 @@ app.on("ready", () => {
mainWindow = createMainWindow();
setApplicationMenu(mainWindow);
if (config.get("options.restartOnConfigChanges")) {
config.watch(() => {
app.relaunch();
app.exit();
});
}
setUpTray(app, mainWindow);
// Autostart at login