mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-29 22:13:34 +03:00
docs: document macOS restrictions on Menu::add_item
(#7983)
This commit is contained in:
parent
d6e10e216e
commit
dfe0badf19
@ -335,6 +335,12 @@ impl Menu {
|
||||
}
|
||||
|
||||
/// Adds the custom menu item to the menu.
|
||||
///
|
||||
/// ## Platform-spcific:
|
||||
///
|
||||
/// - **macOS:** Only [`Submenu`] can be added to the menu
|
||||
///
|
||||
/// [`Submenu`]: crate::Submenu
|
||||
#[must_use]
|
||||
pub fn add_item(mut self, item: CustomMenuItem) -> Self {
|
||||
self.items.push(MenuEntry::CustomItem(item));
|
||||
|
Loading…
Reference in New Issue
Block a user