Skip to content

Fix minimize-to-tray setting ignored in both apps (#53)#55

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/53-minimize-to-tray
Feb 16, 2026
Merged

Fix minimize-to-tray setting ignored in both apps (#53)#55
erikdarlingdata merged 1 commit intodevfrom
feature/53-minimize-to-tray

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Dashboard: SettingsWindow was creating its own UserPreferencesService instance, so toggling "Minimize to system tray" off had no effect — MainWindow still read the stale in-memory value (true). Fixed by sharing the same instance via constructor injection.
  • Lite: SystemTrayService always hid the window on minimize with no preference check. Added App.MinimizeToTray property wired to settings.json (key already existed but was unused), added checkbox to Settings UI.

Test plan

  • Dashboard: Open Settings → Notifications → uncheck "Minimize to system tray" → OK → minimize app → should stay on taskbar
  • Dashboard: Re-check the setting → OK → minimize → should hide to tray
  • Lite: Open Settings → uncheck "Minimize to system tray" → Save → minimize → should stay on taskbar
  • Lite: Re-check → Save → minimize → should hide to tray
  • Both: Setting persists across app restart

Fixes #53

🤖 Generated with Claude Code

#53)

Dashboard: SettingsWindow was creating its own UserPreferencesService
instance, so preference changes weren't visible to MainWindow's instance
(stale in-memory cache). Now shares the same instance via constructor
injection.

Lite: SystemTrayService always hid window on minimize with no preference
check. Added App.MinimizeToTray property, wired to settings.json
(key already existed but was unused), added checkbox to Settings UI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 57ea5ac into dev Feb 16, 2026
1 check passed
@erikdarlingdata erikdarlingdata deleted the feature/53-minimize-to-tray branch February 20, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant