Skip to content

fix(menu): wire Show/Hide Floating Bar tray menu item to WindowManager - #491

Open
lacymorrow wants to merge 1 commit into
mainfrom
LAC-3030-investigate-a-new-appearance-option-to-put-the-floating-window-where-the-mac-notch-is
Open

fix(menu): wire Show/Hide Floating Bar tray menu item to WindowManager#491
lacymorrow wants to merge 1 commit into
mainfrom
LAC-3030-investigate-a-new-appearance-option-to-put-the-floating-window-where-the-mac-notch-is

Conversation

@lacymorrow

Copy link
Copy Markdown
Owner

Summary

  • SHOW_HIDE_FLOATING_BAR (tray) and TOGGLE_FLOATING_BAR (app menu) emitted toggle-floating-bar-requested but no listener existed — clicking the menu item did nothing
  • Adds setup_menu_event_listeners in events/handlers.rs, called from setup_event_listeners on startup
  • Handler calls WindowManager::is_window_visible then hide_window / window.show() to toggle the floating-bar window

Test plan

  • Launch app, hide floating bar via tray menu → bar disappears
  • Use tray menu again → bar reappears
  • Confirm same behavior via app menu TOGGLE_FLOATING_BAR

Closes LAC-3044

🤖 Generated with Claude Code

The tray and app menu items emitted toggle-floating-bar-requested but no
handler existed, so clicking Show/Hide Floating Bar did nothing. Add a
backend listener in setup_event_listeners that toggles the floating-bar
window visibility via WindowManager show/hide.

Closes LAC-3044

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

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