P6.2: left-click tray icon shows window via SetSystemTrayWindow
Calls desk.SetSystemTrayWindow(w) after SetSystemTrayMenu so a left-click on the tray icon shows/focuses the window without opening the menu. The explicit "Show" menu item is kept for right-click access. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -110,7 +110,7 @@ These land together because both edit `domain/job.go` and `storage/store.go`.
|
|||||||
|
|
||||||
### Phase 6 — Fyne 2.7 upgrade + tray click
|
### Phase 6 — Fyne 2.7 upgrade + tray click
|
||||||
- [x] P6.1 — Bump Fyne to 2.7.x; rebuild
|
- [x] P6.1 — Bump Fyne to 2.7.x; rebuild
|
||||||
- [ ] P6.2 — `SetSystemTrayWindow` left-click-to-show
|
- [x] P6.2 — `SetSystemTrayWindow` left-click-to-show
|
||||||
- [ ] P6.3 — Re-measure startup → PERFORMANCE.md
|
- [ ] P6.3 — Re-measure startup → PERFORMANCE.md
|
||||||
|
|
||||||
### Phase 7 — Roadmap follow-ups
|
### Phase 7 — Roadmap follow-ups
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ func configureSystemTray(a fyne.App, w fyne.Window) {
|
|||||||
quit,
|
quit,
|
||||||
)
|
)
|
||||||
desk.SetSystemTrayMenu(menu)
|
desk.SetSystemTrayMenu(menu)
|
||||||
|
desk.SetSystemTrayWindow(w)
|
||||||
w.SetCloseIntercept(func() {
|
w.SetCloseIntercept(func() {
|
||||||
// Closing hides the window instead of quitting because scheduler tools are
|
// Closing hides the window instead of quitting because scheduler tools are
|
||||||
// expected to keep working in the background. The explicit Quit tray item
|
// expected to keep working in the background. The explicit Quit tray item
|
||||||
|
|||||||
Reference in New Issue
Block a user