diff --git a/.changes/fix-window-menu-nsapp-command.md b/.changes/fix-window-menu-nsapp-command.md new file mode 100644 index 000000000000..22ef6a3d910b --- /dev/null +++ b/.changes/fix-window-menu-nsapp-command.md @@ -0,0 +1,5 @@ +--- +"tauri": "patch:bug" +--- + +Fixed `Submenu.setAsWindowsMenuForNSApp()` calling the Help menu setter instead of the Window menu setter. diff --git a/crates/tauri/src/menu/plugin.rs b/crates/tauri/src/menu/plugin.rs index 84ab54a98d22..7f6741d00315 100644 --- a/crates/tauri/src/menu/plugin.rs +++ b/crates/tauri/src/menu/plugin.rs @@ -815,7 +815,7 @@ fn set_as_windows_menu_for_nsapp( { let resources_table = webview.resources_table(); let submenu = resources_table.get::>(rid)?; - submenu.set_as_help_menu_for_nsapp()?; + submenu.set_as_windows_menu_for_nsapp()?; } let _ = rid;