Commit 9d6ac64
committed
fix(desktop): remove capability guard from update install button
The update banner's "restart & install" button silently did nothing
because the renderer-side install() checked applyMode before calling
IPC. If the capability was fetched before updateManager initialized,
applyMode was "none" and the guard blocked the call permanently.
Remove the redundant guard — the main process IPC handler already
has its own null check on updateManager. The button is only visible
when the update is in "ready" state, so the install action is always
valid at that point.1 parent 02e7354 commit 9d6ac64
1 file changed
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | 378 | | |
386 | 379 | | |
387 | 380 | | |
| |||
394 | 387 | | |
395 | 388 | | |
396 | 389 | | |
397 | | - | |
| 390 | + | |
398 | 391 | | |
399 | 392 | | |
400 | 393 | | |
| |||
0 commit comments