popover: Apply settings enabled stateto UI
This commit is contained in:
@ -364,6 +364,7 @@ pub fn show(
|
|||||||
};
|
};
|
||||||
|
|
||||||
let settings_action = gio::SimpleAction::new("settings", None);
|
let settings_action = gio::SimpleAction::new("settings", None);
|
||||||
|
settings_action.set_enabled(popover.settings_active);
|
||||||
settings_action.connect_activate(move |_, _| {
|
settings_action.connect_activate(move |_, _| {
|
||||||
let s = CString::new("region").unwrap();
|
let s = CString::new("region").unwrap();
|
||||||
unsafe { c::popover_open_settings_panel(s.as_ptr()) };
|
unsafe { c::popover_open_settings_panel(s.as_ptr()) };
|
||||||
|
|||||||
Reference in New Issue
Block a user