From a361c5aa97b2b7c6b8338f98c9aa06cca3e66b46 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 8 Dec 2024 06:40:37 +0200 Subject: [PATCH] sync item properties on bind --- .../item/identity/gemini/widget/form/list.rs | 54 +++++++++++++------ 1 file changed, 37 insertions(+), 17 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 ca097e36..ad104493 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 @@ -12,7 +12,7 @@ use gtk::{ ListStore, }, glib::Uri, - prelude::{BoxExt, ListItemExt, WidgetExt}, + prelude::{BoxExt, ListItemExt, ObjectExt, WidgetExt}, Align, Box, DropDown, Image, Label, ListItem, Orientation, SignalListItemFactory, }; @@ -96,26 +96,46 @@ impl List { let item = list_item.item().and_downcast::().unwrap(); let child = list_item.child().and_downcast::().unwrap(); - // Update `title` - let title = child.first_child().and_downcast::