1
0
mirror of https://github.com/docker/docs.git synced 2026-11-14 04:50:52 +03:00

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

View File

@@ -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');
}
});