浏览代码

docs: fix explanation of darwin auto-quit prevention (#394)

Benjamin Sova 5 年之前
父节点
当前提交
5f0d688e61
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      main.js

+ 3 - 3
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()
 })