Skip to content

Commit

Permalink
Merge pull request #3223 from input-output-hk/fix/LW-11428-bricked-au…
Browse files Browse the repository at this point in the history
…to-update

[LW-11428] Un-brick auto-update on devices where it failed in the past
  • Loading branch information
michalrus authored Sep 7, 2024
2 parents 7e09e21 + 40329a6 commit 8148c3e
Show file tree
Hide file tree
Showing 2 changed files with 12 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
8 changes: 8 additions & 0 deletions source/renderer/app/stores/AppUpdateStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ 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(() => {
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 8148c3e

Please sign in to comment.