Retry updater when in-call app close is cancelled
This commit is contained in:
parent
ab1ae26489
commit
9d2a043191
6 changed files with 50 additions and 7 deletions
|
@ -9,7 +9,6 @@ import { join } from 'path';
|
|||
import { Updater, createTempDir, deleteTempDir } from './common';
|
||||
import { explodePromise } from '../util/explodePromise';
|
||||
import * as Errors from '../types/errors';
|
||||
import { markShouldQuit } from '../../app/window_state';
|
||||
import { DialogType } from '../types/Dialogs';
|
||||
|
||||
export class MacOSUpdater extends Updater {
|
||||
|
@ -41,7 +40,7 @@ export class MacOSUpdater extends Updater {
|
|||
|
||||
this.setUpdateListener(async () => {
|
||||
logger.info('downloadAndInstall: restarting...');
|
||||
markShouldQuit();
|
||||
this.markRestarting();
|
||||
autoUpdater.quitAndInstall();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue