From 24d558470251d479b611a22bfa7f1b7ba0c70a45 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 10 Apr 2021 23:00:05 +0200 Subject: [PATCH] fix: quit application via window close icon This commit closes #33 --- main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.ts b/main.ts index d057a1da..e3cf1568 100644 --- a/main.ts +++ b/main.ts @@ -52,6 +52,10 @@ function createWindow(): BrowserWindow { // in an array if your app supports multi windows, this is the time // when you should delete the corresponding element. win = null; + + if (process.platform !== 'darwin') { + app.quit(); + } }); return win;