Commit 7b43a21
fix(updater): adopt returned snapshot so "Restart & install" shows at once
After a successful download the button briefly reverted to "Download
update" because setUpdateBusy('idle') ran before the push event
'app_update_status_changed' carrying state='ready' reached the renderer.
Now we update updateStatus from the RPC snapshot returned synchronously,
so the state transition is atomic with the busy reset.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ca36927 commit 7b43a21
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
0 commit comments