fix active page reset

This commit is contained in:
yggverse 2024-11-04 17:38:40 +02:00
parent b443d1c58e
commit 710093b161
5 changed files with 37 additions and 19 deletions

View file

@ -27,6 +27,9 @@ impl Action {
Self { group, simple }
}
/// Stateful constructors useful for actions that require custom values
/// but could not receive it directly with action argument
/// e.g. [MenuModel](https://docs.gtk.org/gio/class.MenuModel.html)
pub fn new_stateful(
group: &str,
is_enabled: bool,