Fix updater onRestartCancelled state
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
parent
284df41648
commit
f777268b04
1 changed files with 2 additions and 7 deletions
|
@ -159,16 +159,11 @@ export abstract class Updater {
|
|||
}
|
||||
|
||||
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;
|
||||
markShouldNotQuit();
|
||||
|
||||
const mainWindow = this.getMainWindow();
|
||||
mainWindow?.webContents.send(
|
||||
'show-update-dialog',
|
||||
DialogType.DownloadedUpdate
|
||||
);
|
||||
drop(this.force());
|
||||
}
|
||||
|
||||
public async start(): Promise<void> {
|
||||
|
|
Loading…
Reference in a new issue