From 60d77995c3b0b228015d16ae14e3bc24f973c756 Mon Sep 17 00:00:00 2001 From: Nikolay Zapolnov Date: Tue, 10 Apr 2018 00:41:54 +0200 Subject: [PATCH] Fix bug. --- shell/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/main.js b/shell/main.js index 2e65c96..aae109d 100644 --- a/shell/main.js +++ b/shell/main.js @@ -145,7 +145,8 @@ app.on('window-all-closed', function () { if(process.platform === 'darwin') { app.on('before-quit', function () { app.isQuiting = true; - walletWindow.hide(); + if(walletWindow) + walletWindow.hide(); core.kill('SIGINT'); setTimeout(function () { process.exit(0);