Skip to content

Commit

Permalink
[LW-11428] Un-brick auto-update on devices where it failed in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrus committed Sep 6, 2024
1 parent 7e09e21 commit 1507510
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## vNext

### Fixes

- Un-brick auto-update on devices where it failed in the past ([PR 3223](https://github.com/input-output-hk/daedalus/pull/3223))

## 6.0.1

### Fixes
Expand Down
6 changes: 6 additions & 0 deletions source/renderer/app/stores/AppUpdateStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ export default class AppUpdateStore extends Store {
);

setup() {
// Unset `APP-AUTOMATIC-UPDATE-FAILED` on every application startup to try again if we failed in the past;
// otherwise this computer's auto-update would be bricked forever:
this.unsetAppAutomaticUpdateFailedRequest.execute().then((result) => {
logger.info('Resetting the APP-AUTOMATIC-UPDATE-FAILED flag on startup');
});

const actions = this.actions.appUpdate;
actions.installUpdate.listen(this._installUpdate);
actions.openAppUpdateOverlay.listen(this._openAppUpdateOverlay);
Expand Down

0 comments on commit 1507510

Please sign in to comment.