mirror of https://github.com/docker/docs.git
Fixed bug where error dialog would appear if app was closed via taskbar
This commit is contained in:
parent
4d5b9861dd
commit
85fc0a6eda
|
|
@ -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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue