diff --git a/emain/emain.ts b/emain/emain.ts index 086fea132..9e2d0fffd 100644 --- a/emain/emain.ts +++ b/emain/emain.ts @@ -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; });