Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Aug 17, 2025

Menu buttons with gear icons (⚙️) throughout the Meshroom UI were not closing when clicked a second time, requiring users to click elsewhere to dismiss menus. The root cause was that onClicked handlers were always calling menu.open() instead of implementing proper toggle behavior.

Problem

When clicking any gear icon menu button:

  • First click: Menu opens correctly ✅
  • Second click: Menu remains open ❌
  • User must click elsewhere to close menu

Solution

Changed all problematic onClicked handlers from:

onClicked: menu.open()  // Always opens

To proper toggle logic:

onClicked: menu.visible ? menu.close() : menu.open()  // Toggle behavior

Components Fixed

  • Sequence Player settings menu - The main issue reported
  • Image Viewer menu - WorkspaceView.qml
  • Graph Editor menu - Application.qml
  • Image Gallery menu - ImageGallery.qml
  • Node Editor settings menu - NodeEditor.qml

This ensures consistent toggle behavior across all menu buttons in the application. Users can now properly open and close menus by clicking the same button.

Fixes #2818.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits August 17, 2025 22:41
- Fix SequencePlayer.qml infoButton to properly toggle menu on click
- Fix WorkspaceView.qml imageViewer menu button for consistency
- Change from always calling open() to conditional toggle logic

Co-authored-by: fabiencastan <[email protected]>
- Fix Application.qml graphEditorMenu toggle
- Fix ImageGallery.qml galleryMenu toggle
- Fix NodeEditor.qml settingsMenu toggle
- Apply consistent toggle pattern across all menu buttons

Co-authored-by: fabiencastan <[email protected]>
@Copilot Copilot AI changed the title [WIP] [bug] Image Viewer: Sequence settings Fix menu toggle behavior for gear icon buttons across UI components Aug 17, 2025
Copilot finished work on behalf of fabiencastan August 17, 2025 22:45
@Copilot Copilot AI requested a review from fabiencastan August 17, 2025 22:45
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.

[bug] Image Viewer: Sequence settings

2 participants