fix restart app on config change option

This commit is contained in:
Araxeus
2022-01-20 22:54:19 +02:00
parent 44aa62c9c8
commit 74b67c3d33
12 changed files with 54 additions and 40 deletions

View File

@ -307,12 +307,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