Fix timing to call quitAndInstall()
This commit is contained in:
@@ -83,10 +83,11 @@ function isUpdateApplicable(now, skippedVersion, updateInfo) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function downloadAndInstall() {
|
function downloadAndInstall() {
|
||||||
autoUpdater.downloadUpdate().then(() => {
|
autoUpdater.on('update-downloaded', () => {
|
||||||
global.willAppQuit = true;
|
global.willAppQuit = true;
|
||||||
autoUpdater.quitAndInstall();
|
autoUpdater.quitAndInstall();
|
||||||
});
|
});
|
||||||
|
autoUpdater.downloadUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
function initialize(appState, mainWindow, notifyOnly = false) {
|
function initialize(appState, mainWindow, notifyOnly = false) {
|
||||||
|
Reference in New Issue
Block a user