Skip to content

Commit 1bcb23f

Browse files
authored
book: Rename action to correct name (#1510)
1 parent 8270e05 commit 1bcb23f

File tree

1 file changed

+7
-5
lines changed
  • book/listings/todo/8/window

1 file changed

+7
-5
lines changed

book/listings/todo/8/window/mod.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,13 @@ impl Window {
387387

388388
// ANCHOR: setup_actions
389389
// Create action to create new collection and add to action group "win"
390-
let action_new_list = gio::SimpleAction::new("new-collection", None);
391-
action_new_list.connect_activate(clone!(@weak self as window => move |_, _| {
392-
window.new_collection();
393-
}));
394-
self.add_action(&action_new_list);
390+
let action_new_collection = gio::SimpleAction::new("new-collection", None);
391+
action_new_collection.connect_activate(
392+
clone!(@weak self as window => move |_, _| {
393+
window.new_collection();
394+
}),
395+
);
396+
self.add_action(&action_new_collection);
395397
// ANCHOR_END: setup_actions
396398
}
397399

0 commit comments

Comments
 (0)