Skip to content

Comments

Fix set_as_windows_menu_for_nsapp() and set_as_help_menu_for_nsapp()#322

Open
signadou wants to merge 2 commits intotauri-apps:devfrom
Piebald-AI:signadou/fix-macos-special-menu-functions
Open

Fix set_as_windows_menu_for_nsapp() and set_as_help_menu_for_nsapp()#322
signadou wants to merge 2 commits intotauri-apps:devfrom
Piebald-AI:signadou/fix-macos-special-menu-functions

Conversation

@signadou
Copy link
Contributor

@signadou signadou commented Oct 14, 2025

They were both using an NSMenu object that wasn't added to any menu, so macOS was ignoring them. This PR makes it so that the NSMenu instance that's added to the main app menu is used when available, or else the first NSMenu that has any supermenu.

Closes #263
Closes tauri-apps/tauri#13605
Closes tauri-apps/tauri#14199

They were both using an NSMenu object that wasn't added to any menu, so macOS was ignoring them.  This commit makes it so that the NSMenu instance that's added to the main app menu is used when available, or else the first NSMenu that has any supermenu.
xiaolai added a commit to xiaolai/vmark that referenced this pull request Jan 30, 2026
Workaround for muda's broken set_as_help_menu_for_nsapp().
Directly calls NSApplication.setHelpMenu() after menu creation
to enable the native macOS Help menu search functionality.

See: tauri-apps/muda#322
Copy link
Member

@probablykasper probablykasper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and tested that it works

xiaolai added a commit to xiaolai/vmark that referenced this pull request Feb 19, 2026
Workaround for muda's broken set_as_help_menu_for_nsapp().
Directly calls NSApplication.setHelpMenu() after menu creation
to enable the native macOS Help menu search functionality.

See: tauri-apps/muda#322
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] Window and Help menu are not working on MacOS set_as_help_menu_for_nsapp and set_as_windows_menu_for_nsapp are broken on macOS

2 participants