Fix updater onRestartCancelled state
This commit is contained in:
parent
ef830e0432
commit
c319a089d2
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…
Add table
Add a link
Reference in a new issue