Fix updater onRestartCancelled state

This commit is contained in:
ayumi-signal 2024-02-26 22:03:07 -08:00 committed by GitHub
parent ef830e0432
commit c319a089d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,16 +159,11 @@ export abstract class Updater {
} }
this.logger.info( this.logger.info(
'updater/onRestartCancelled: restart was cancelled. showing update dialog.' 'updater/onRestartCancelled: restart was cancelled. forcing update to reset updater state'
); );
this.restarting = false; this.restarting = false;
markShouldNotQuit(); markShouldNotQuit();
drop(this.force());
const mainWindow = this.getMainWindow();
mainWindow?.webContents.send(
'show-update-dialog',
DialogType.DownloadedUpdate
);
} }
public async start(): Promise<void> { public async start(): Promise<void> {