close app when all windows close (except on mac)

This commit is contained in:
sawka 2024-07-19 15:59:47 -07:00
parent 36ff1608bb
commit 05035b2455

View File

@ -613,6 +613,11 @@ function makeAppMenu() {
electron.Menu.setApplicationMenu(menu);
}
electron.app.on("window-all-closed", () => {
if (unamePlatform !== "darwin") {
electron.app.quit();
}
});
electron.app.on("before-quit", () => {
globalIsQuitting = true;
});