diff --git a/src/browser.js b/src/browser.js index b731e338ef..04e3918c71 100644 --- a/src/browser.js +++ b/src/browser.js @@ -52,7 +52,8 @@ app.on('ready', 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'); } });