Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47e1b75

Browse files
fix: set_as_windows_menu_for_nsapp command wrongly called set_as_help_menu_for_nsapp (#15386)
1 parent eadd8f5 commit 47e1b75

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": "patch:bug"
3+
---
4+
5+
Fixed `Submenu.setAsWindowsMenuForNSApp()` calling the Help menu setter instead of the Window menu setter.

crates/tauri/src/menu/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ fn set_as_windows_menu_for_nsapp<R: Runtime>(
815815
{
816816
let resources_table = webview.resources_table();
817817
let submenu = resources_table.get::<Submenu<R>>(rid)?;
818-
submenu.set_as_help_menu_for_nsapp()?;
818+
submenu.set_as_windows_menu_for_nsapp()?;
819819
}
820820

821821
let _ = rid;

0 commit comments

Comments
 (0)