Skip to content

Commit

Permalink
book: Rename action to correct name (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian authored Oct 11, 2023
1 parent 8270e05 commit 1bcb23f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions book/listings/todo/8/window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,13 @@ impl Window {

// ANCHOR: setup_actions
// Create action to create new collection and add to action group "win"
let action_new_list = gio::SimpleAction::new("new-collection", None);
action_new_list.connect_activate(clone!(@weak self as window => move |_, _| {
window.new_collection();
}));
self.add_action(&action_new_list);
let action_new_collection = gio::SimpleAction::new("new-collection", None);
action_new_collection.connect_activate(
clone!(@weak self as window => move |_, _| {
window.new_collection();
}),
);
self.add_action(&action_new_collection);
// ANCHOR_END: setup_actions
}

Expand Down

0 comments on commit 1bcb23f

Please sign in to comment.