feat(Windows): add is_menu_showing() method to check tray menu visibi…#302
feat(Windows): add is_menu_showing() method to check tray menu visibi…#302iKineticate wants to merge 2 commits into
is_menu_showing() method to check tray menu visibi…#302Conversation
amrbashir
left a comment
There was a problem hiding this comment.
Just curious, what would be the use case of this function?
| /// Whether the tray menu is currently showing | ||
| static IS_MENU_SHOWING: AtomicBool = AtomicBool::new(false); |
There was a problem hiding this comment.
This doesn't work because we allow creating multiple tray icons, each with their own set of data and menu.
There was a problem hiding this comment.
I've changed it to a HashMap<usize, bool> keyed by HWND address, so each tray icon now tracks its own menu state independently.
refactor: support multiple tray icons by storing menu state per HWND
Use case: Avoid interrupting user interaction. When a background thread or async task calls |
No description provided.