Retry updater when in-call app close is cancelled

This commit is contained in:
ayumi-signal 2024-02-26 16:18:50 -08:00 committed by GitHub
parent ab1ae26489
commit 9d2a043191
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 50 additions and 7 deletions

View file

@ -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();
});
}