merge stable version #2

Merged
doryan merged 97 commits from experimental into main 2024-08-28 18:54:00 +03:00
Showing only changes of commit 9d42c56423 - Show all commits

View File

@ -54,10 +54,10 @@ where
&self.actions_group.0 &self.actions_group.0
} }
pub fn append_items<Iterable, F>(&self, items: Iterable) pub fn append_items<F, I>(&self, items: I)
where where
Iterable: IntoIterator<Item = (F, &'static str, &'static str)>,
F: Fn(&SimpleAction, Option<&Variant>) + 'static, F: Fn(&SimpleAction, Option<&Variant>) + 'static,
I: IntoIterator<Item = &'static (F, &'static str, &'static str)>,
{ {
for (callback, action_name, action_label) in items { for (callback, action_name, action_label) in items {
let action = ActionEntry::<SimpleActionGroup>::builder(action_name) let action = ActionEntry::<SimpleActionGroup>::builder(action_name)