We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce04218 commit a33c10cCopy full SHA for a33c10c
1 file changed
docs/tutorial/first-app.md
@@ -141,10 +141,10 @@ function createWindow () {
141
// Some APIs can only be used after this event occurs.
142
app.whenReady().then(createWindow)
143
144
-// Quit when all windows are closed.
+// 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.
147
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
148
if (process.platform !== 'darwin') {
149
app.quit()
150
}
0 commit comments