Commit 0b287a0
Check for updates on a timer, not only at startup
checkForUpdate() ran once in onMount, so an app left open for days would never
notice a release until it was restarted. A setInterval re-checks every 6 hours
while the app is running.
The periodic check skips itself while a download/install is in flight (so it
can't swap the update object out from under it), and clears a prior dismissal
when it finds a version newer than the one on screen — dismissing v0.10.2
shouldn't hide v0.10.3. It stays silent otherwise: the existing banner is the
only surfacing, and it appears only when check() returns an update.
Folded into the v0.10.2 release alongside the updater-notes work.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3615bec commit 0b287a0
3 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
277 | 282 | | |
278 | 283 | | |
279 | 284 | | |
| |||
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
| 364 | + | |
359 | 365 | | |
360 | 366 | | |
361 | 367 | | |
| |||
373 | 379 | | |
374 | 380 | | |
375 | 381 | | |
| 382 | + | |
376 | 383 | | |
377 | 384 | | |
378 | 385 | | |
| |||
391 | 398 | | |
392 | 399 | | |
393 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
394 | 404 | | |
395 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
396 | 411 | | |
397 | 412 | | |
398 | 413 | | |
| |||
0 commit comments