Fix "Cannot Update" dialog's retry button

This commit is contained in:
Fedor Indutny 2022-04-27 16:02:41 -07:00 committed by GitHub
parent 99de97a099
commit 65dc9d6afb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 3 deletions

View file

@ -180,6 +180,13 @@ export abstract class Updater {
const mainWindow = this.getMainWindow();
mainWindow?.webContents.send('show-update-dialog', dialogType);
this.setUpdateListener(async () => {
this.logger.info('updater/markCannotUpdate: retrying after user action');
this.markedCannotUpdate = false;
await this.checkForUpdatesMaybeInstall();
});
}
//