From e8c26d691a20a96c4e9d841d31fc315dabd5a5a1 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Wed, 29 Nov 2023 21:22:30 +0000 Subject: [PATCH] fix make menu item --- src/platform_impl/macos/menu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/macos/menu.rs b/src/platform_impl/macos/menu.rs index e2f1d36282..77c1a244f9 100644 --- a/src/platform_impl/macos/menu.rs +++ b/src/platform_impl/macos/menu.rs @@ -11,7 +11,7 @@ pub struct Menu(pub(crate) Id); fn make_menu_item(id: u32, text: &str, selected: Option, enabled: bool) -> Id { let item = NSMenuItem::newWithTitle( &NSString::from_str(text), - sel!(handleMenuItem:), + Some(sel!(handleMenuItem:)), ns_string!(""), );