Skip to content

Toggle window visibility on tray icon click#1826

Open
ArtemYurov wants to merge 1 commit intochen08209:mainfrom
ArtemYurov:feature/tray-toggle-window
Open

Toggle window visibility on tray icon click#1826
ArtemYurov wants to merge 1 commit intochen08209:mainfrom
ArtemYurov:feature/tray-toggle-window

Conversation

@ArtemYurov
Copy link

Summary

  • Clicking the tray icon now toggles window visibility instead of always showing the window
  • If the window is visible, clicking hides it; if hidden, clicking shows it
  • Uses existing Window.isVisible, Window.hide(), and Window.show() methods

Test plan

  • Click tray icon when window is hidden → window should appear
  • Click tray icon when window is visible → window should hide
  • Click tray icon again → window should reappear
  • Right-click tray icon → context menu should work as before

Instead of always showing the window, toggle between show/hide
based on current visibility state.
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