From 8d5b0fe863ce06014e799ab7280ed0377b9cb3cc Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 15 Aug 2021 14:42:48 +0200 Subject: [PATCH] macOS: don't exit when the last window is closed - fixes #4263 --- app/lib/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/lib/index.ts b/app/lib/index.ts index f4dd2009..8248d47b 100644 --- a/app/lib/index.ts +++ b/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)