Skip to content

Commit

Permalink
fix make menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Nov 29, 2023
1 parent 0e4ac14 commit e8c26d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_impl/macos/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Menu(pub(crate) Id<NSMenu>);
fn make_menu_item(id: u32, text: &str, selected: Option<bool>, enabled: bool) -> Id<NSMenuItem> {
let item = NSMenuItem::newWithTitle(
&NSString::from_str(text),
sel!(handleMenuItem:),
Some(sel!(handleMenuItem:)),
ns_string!(""),
);

Expand Down

0 comments on commit e8c26d6

Please sign in to comment.