Skip to main content

sync_menu

Function sync_menu 

Source
pub fn sync_menu<Id: Copy + Eq + Hash>(
    menu: &mut State<MenuItem, Id>,
    state: &State<Id>,
)
Available on crate feature property-grid only.
Expand description

Disables the entries of a menu that would do nothing for the property it is open on, such as “Reset to default” on a property that already holds its default.