mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
drop Arc from SimpleAction #1
This commit is contained in:
parent
08ad677ba4
commit
920721412e
40 changed files with 162 additions and 175 deletions
|
|
@ -16,7 +16,7 @@ impl Widget {
|
|||
pub fn new_arc(
|
||||
name: &str,
|
||||
// Actions
|
||||
action_page_open: Arc<SimpleAction>,
|
||||
action_page_open: SimpleAction,
|
||||
// Components
|
||||
navigation: &Box,
|
||||
content: &Box,
|
||||
|
|
@ -24,7 +24,7 @@ impl Widget {
|
|||
) -> Arc<Self> {
|
||||
// Init additional action group
|
||||
let action_group = SimpleActionGroup::new();
|
||||
action_group.add_action(action_page_open.as_ref());
|
||||
action_group.add_action(&action_page_open);
|
||||
|
||||
// Init self
|
||||
let gobject = Box::builder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue