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(
|
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> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue