Skip to content

Commit 8148c3e

Browse files
authored
Merge pull request #3223 from input-output-hk/fix/LW-11428-bricked-auto-update
[LW-11428] Un-brick auto-update on devices where it failed in the past
2 parents 7e09e21 + 40329a6 commit 8148c3e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## vNext
44

5+
### Fixes
6+
7+
- Un-brick auto-update on devices where it failed in the past ([PR 3223](https://github.com/input-output-hk/daedalus/pull/3223))
8+
59
## 6.0.1
610

711
### Fixes

source/renderer/app/stores/AppUpdateStore.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ export default class AppUpdateStore extends Store {
9090
);
9191

9292
setup() {
93+
/**
94+
* Unset `APP-AUTOMATIC-UPDATE-FAILED` on every application startup to try again if we failed in the past;
95+
* Otherwise, this computer's auto-update would be bricked forever:
96+
*/
97+
this.unsetAppAutomaticUpdateFailedRequest.execute().then(() => {
98+
logger.info('Resetting the APP-AUTOMATIC-UPDATE-FAILED flag on startup');
99+
});
100+
93101
const actions = this.actions.appUpdate;
94102
actions.installUpdate.listen(this._installUpdate);
95103
actions.openAppUpdateOverlay.listen(this._openAppUpdateOverlay);

0 commit comments

Comments
 (0)