pub fn set_menu<R: Runtime>(
app: &AppHandle<R>,
spec: &MenuSpec,
) -> Result<(), CommandError>Expand description
Sets the menu bar from Rust, for an app whose page cannot send it (a hosted app): the same checks as the command.
pub fn set_menu<R: Runtime>(
app: &AppHandle<R>,
spec: &MenuSpec,
) -> Result<(), CommandError>Sets the menu bar from Rust, for an app whose page cannot send it (a hosted app): the same checks as the command.