From 31d9b38fa90d145bc7655a5373172610c60fe4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Naz=C4=B1m=20Gediz=20Ayd=C4=B1ndo=C4=9Fmu=C5=9F?= Date: Tue, 14 Feb 2023 16:15:49 +0300 Subject: [PATCH] Update main.js Add complete quit procedure for windows and linux --- main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.js b/main.js index 31b6865..29ae36f 100644 --- a/main.js +++ b/main.js @@ -15,3 +15,8 @@ const createWindow = () => { app.whenReady().then(() => { createWindow() }) + +// Quit the app when all windows are closed (for windows and linux only) +app.on('window-all-closed', () => { + if (process.platform !== 'darwin') app.quit() +})