From 1bcb23ffac5b792a8e4846d1b266b958d8db5168 Mon Sep 17 00:00:00 2001 From: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Date: Wed, 11 Oct 2023 12:19:40 +0200 Subject: [PATCH] book: Rename action to correct name (#1510) --- book/listings/todo/8/window/mod.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/book/listings/todo/8/window/mod.rs b/book/listings/todo/8/window/mod.rs index bda86c0985b5..b2120f546932 100644 --- a/book/listings/todo/8/window/mod.rs +++ b/book/listings/todo/8/window/mod.rs @@ -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 }