Skip to content

Commit 1507510

Browse files
committed
[LW-11428] Un-brick auto-update on devices where it failed in the past
1 parent 7e09e21 commit 1507510

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ export default class AppUpdateStore extends Store {
9090
);
9191

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

0 commit comments

Comments
 (0)