Commit 50531d7
committed
feat(tray): minimize sends Settings to tray; rename Exit -> Quit
The app already used ShutdownMode=OnExplicitShutdown, so closing the
Settings window via the X already kept the app alive in the tray.
But the minimize ('-') button still went to the taskbar, which is the
wrong UX for a tray app. Two small changes:
* SettingsWindow.OnStateChanged: when WindowState becomes Minimized,
close the window instead. The taskbar entry disappears and the app
stays in the tray, identical to clicking X. Reopen via tray icon
double-click or the tray's Settings menu item.
* TrayIconHost: rename 'Exit' to 'Quit' to match the user-facing
vocabulary (and to make it clear that this is the only path that
fully terminates the process).
Behavior summary after this change:
* X on Settings -> window closes, app stays in tray
* '-' on Settings -> window closes, app stays in tray (was: taskbar)
* Save & close -> persists, window closes, app stays in tray
* Cancel -> discards, window closes, app stays in tray
* Tray > Quit -> ExitApp: dispose tray + monitor + Shutdown()1 parent 82e2bb1 commit 50531d7
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
622 | 638 | | |
623 | 639 | | |
624 | 640 | | |
| |||
0 commit comments