From 5a0ca0db20d3fcc352952ac9f176df1581d1850c Mon Sep 17 00:00:00 2001 From: Johns Gresham Date: Mon, 16 Sep 2024 15:49:10 -0700 Subject: [PATCH] fix: close main window on first quit on all platforms (#661) * fix: close main window on first quit cleanup --- src/main/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/main.ts b/src/main/main.ts index 19c1fb91..edad741e 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -254,9 +254,8 @@ app.on('before-quit', (e) => { // monitor node's statuses and alert the user when a node is down, and to continuously // track node usage. e.preventDefault(); // halts electron's full quitting action - // todo: close windows? + mainWindow?.close(); // close the main window if (process.platform === 'darwin' && app.dock) { - mainWindow?.close(); // close the main window app.dock.hide(); // app appears "quitted" in the dock } }