try kill again

This commit is contained in:
Olivier Gagnon 2021-12-17 11:36:24 -05:00
parent 6c5842d2e7
commit 36fd3c5d68
2 changed files with 3 additions and 7 deletions

@ -116,11 +116,7 @@ app.whenReady().then(() => {
createWindow(process.argv.includes("--no-scripts"));
});
app.on("window-all-closed", function () {
app.quit();
});
app.on("before-quit", () => {
app.once("window-all-closed", app.quit);
app.once("before-quit", () => {
win.removeAllListeners("close");
win.close();
});

File diff suppressed because one or more lines are too long