Fixed bug where error dialog would appear if app was closed via taskbar

This commit is contained in:
Jeffrey Morgan 2015-06-08 15:34:54 -07:00
parent 4d5b9861dd
commit 85fc0a6eda
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ app.on('ready', function () {
}); });
app.on('before-quit', function () { app.on('before-quit', function () {
if (!updating) { // TODO: make this work for right click + close
if (!updating && mainWindow.webContents) {
mainWindow.webContents.send('application:quitting'); mainWindow.webContents.send('application:quitting');
} }
}); });