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 3d449814..ceedd7ea 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 @@ -122,16 +122,16 @@ impl List { // Init main widget let dropdown = DropDown::builder() .model(&list_store) + .selected( + list_store + .find_with_equal_func(|item| { + item.dynamic_cast_ref::().unwrap().is_active() + }) + .unwrap(), + ) .factory(&factory) .build(); - // Select active record - dropdown.set_selected( - list_store - .find_with_equal_func(|item| item.dynamic_cast_ref::().unwrap().is_active()) - .unwrap(), - ); // @TODO panic or handle? - // Return activated `Self` Self { list_store,