From 0f6855d978aa787c04e1808a80ef31bacbbe76f8 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 19 Aug 2021 09:35:42 +0200 Subject: [PATCH] only leave a process running on macOS- fixes #4442 --- app/lib/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/lib/index.ts b/app/lib/index.ts index 8248d47b61..06189d053b 100644 --- a/app/lib/index.ts +++ b/app/lib/index.ts @@ -26,7 +26,11 @@ app.on('activate', () => { } }) -app.on('window-all-closed', () => null) +app.on('window-all-closed', () => { + if (process.platform !== 'darwin') { + app.quit() + } +}) process.on('uncaughtException' as any, err => { console.log(err)