mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Fix bug where auto update would throw an exception when notifying app on quit
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Kitematic",
|
||||
"version": "0.5.16",
|
||||
"version": "0.5.17",
|
||||
"author": "Kitematic",
|
||||
"description": "Simple Docker Container management for Mac OS X.",
|
||||
"homepage": "https://kitematic.com/",
|
||||
|
||||
@@ -44,8 +44,8 @@ SetupStore.setup().then(() => {
|
||||
bugsnag.notify(err);
|
||||
});
|
||||
|
||||
ipc.on('application:quitting', opts => {
|
||||
if (!opts.updating && localStorage.getItem('settings.closeVMOnQuit') === 'true') {
|
||||
ipc.on('application:quitting', () => {
|
||||
if (localStorage.getItem('settings.closeVMOnQuit') === 'true') {
|
||||
machine.stop();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -45,9 +45,9 @@ app.on('ready', function () {
|
||||
});
|
||||
|
||||
app.on('before-quit', function () {
|
||||
mainWindow.webContents.send('application:quitting', {
|
||||
updating: updating
|
||||
});
|
||||
if (!updating) {
|
||||
mainWindow.webContents.send('application:quitting');
|
||||
}
|
||||
});
|
||||
|
||||
mainWindow.webContents.on('new-window', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user