From d93c68378e2d5d07a3f07e700f6ad1ca8ceb1695 Mon Sep 17 00:00:00 2001 From: Christian Helvin Date: Tue, 13 Mar 2018 10:57:57 -0500 Subject: [PATCH] fixed issue #4 for app closing --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index e4842ed..3bde6a1 100644 --- a/main.js +++ b/main.js @@ -330,6 +330,10 @@ app.on('window-all-closed', function () { } }) +app.on('before-quit', function () { + mainWindow.destroy() +}) + app.on('activate', function () { // On OS X it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open.