Fix updater onRestartCancelled state

Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-02-27 10:59:49 -06:00 committed by GitHub
parent 284df41648
commit f777268b04
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> {