From 052a219d9bf2ffce54d3be28893731963acbcd2d Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 5 Dec 2024 10:24:27 +0200 Subject: [PATCH] rename variable --- .../window/tab/item/identity/gemini/widget/form/list.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs index 09985b6e..0bcb1f8c 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs @@ -27,7 +27,7 @@ impl List { // * wanted only to append items after `DropDown` init let factory = SignalListItemFactory::new(); - factory.connect_setup(|_, dropdown| { + factory.connect_setup(|_, this| { // Init widget for dropdown item let widget = Box::builder() .orientation(gtk::Orientation::Vertical) @@ -45,15 +45,14 @@ impl List { ); // Done - dropdown - .downcast_ref::() + this.downcast_ref::() .unwrap() .set_child(Some(&widget)); }); - factory.connect_bind(|_, dropdown| { + factory.connect_bind(|_, this| { // Downcast requirements - let list_item = dropdown.downcast_ref::().unwrap(); + let list_item = this.downcast_ref::().unwrap(); let item = list_item.item().and_downcast::().unwrap(); let container = list_item.child().and_downcast::().unwrap();