From 5f0d688e61de5773b0a526f3acc6ea4d761841db Mon Sep 17 00:00:00 2001 From: Benjamin Sova <65474198+BenSova@users.noreply.github.com> Date: Thu, 11 Jun 2020 10:57:35 -0600 Subject: [PATCH] docs: fix explanation of darwin auto-quit prevention (#394) --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 0cacf3f..8c14916 100644 --- a/main.js +++ b/main.js @@ -32,10 +32,10 @@ app.whenReady().then(() => { }) }) -// Quit when all windows are closed. +// 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. app.on('window-all-closed', function () { - // On macOS it is common for applications and their menu bar - // to stay active until the user quits explicitly with Cmd + Q if (process.platform !== 'darwin') app.quit() })