Skip to content

Commit a33c10c

Browse files
author
Benjamin Sova
authored
docs: fix explanation of darwin auto-quit prevention (electron#24003)
1 parent ce04218 commit a33c10c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/tutorial/first-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ function createWindow () {
141141
// Some APIs can only be used after this event occurs.
142142
app.whenReady().then(createWindow)
143143

144-
// Quit when all windows are closed.
144+
// Quit when all windows are closed, except on macOS. There, it's common
145+
// for applications and their menu bar to stay active until the user quits
146+
// explicitly with Cmd + Q.
145147
app.on('window-all-closed', () => {
146-
// On macOS it is common for applications and their menu bar
147-
// to stay active until the user quits explicitly with Cmd + Q
148148
if (process.platform !== 'darwin') {
149149
app.quit()
150150
}

0 commit comments

Comments
 (0)