Browse Source

macOS: don't exit when the last window is closed - fixes #4263

Eugene Pankov 4 years ago
parent
commit
8d5b0fe863
1 changed files with 1 additions and 3 deletions
  1. 1 3
      app/lib/index.ts

+ 1 - 3
app/lib/index.ts

@@ -26,9 +26,7 @@ app.on('activate', () => {
     }
 })
 
-app.on('window-all-closed', () => {
-    app.quit()
-})
+app.on('window-all-closed', () => null)
 
 process.on('uncaughtException' as any, err => {
     console.log(err)