From 9724af8514be0035066e66e7b5e17e482daef305 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 13 Oct 2025 18:31:18 +0700 Subject: [PATCH] make app close when zero windows on macos too --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index 0d59e1f..d19a4b4 100644 --- a/main.js +++ b/main.js @@ -378,6 +378,10 @@ ipcMain.on('generate', (e, msg) => generate(msg)); // Quit when all windows are closed, except on macOS. There, it's common // for applications and their menu bar to stay active until the user quits // explicitly with Cmd + Q. +// +// NOTE: Disabling to test, as the nature of this app is to be transient. +/* app.on('window-all-closed', function () { if (process.platform !== 'darwin') app.quit() }); +*/ -- 2.51.2