From a33c10c3eda4e92cbf9d51180ced8218b74f752d Mon Sep 17 00:00:00 2001 From: Benjamin Sova <65474198+BenSova@users.noreply.github.com> Date: Wed, 10 Jun 2020 20:08:27 -0600 Subject: [PATCH] docs: fix explanation of darwin auto-quit prevention (#24003) --- docs/tutorial/first-app.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/first-app.md b/docs/tutorial/first-app.md index bd4befbbdd9f3..e6fdcb3454f0b 100644 --- a/docs/tutorial/first-app.md +++ b/docs/tutorial/first-app.md @@ -141,10 +141,10 @@ function createWindow () { // Some APIs can only be used after this event occurs. app.whenReady().then(createWindow) -// 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', () => { - // 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() }