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:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user