[fractal/fractal-next] category: Small refactor



commit f1676abcafb0d6bfed069f0df822782d3c1d270d
Author: Kai A. Hiller <V02460 gmail com>
Date:   Thu Aug 5 14:52:22 2021 +0200

    category: Small refactor

 src/session/sidebar/category.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/session/sidebar/category.rs b/src/session/sidebar/category.rs
index 3c0fd0d1..9cb82b54 100644
--- a/src/session/sidebar/category.rs
+++ b/src/session/sidebar/category.rs
@@ -13,7 +13,7 @@ mod imp {
 
     #[derive(Debug, Default)]
     pub struct Category {
-        pub model: OnceCell<gtk::FilterListModel>,
+        pub model: OnceCell<gio::ListModel>,
         pub type_: Cell<RoomType>,
     }
 
@@ -136,6 +136,6 @@ impl Category {
             }),
         );
 
-        let _ = priv_.model.set(filter_model);
+        priv_.model.set(filter_model.upcast()).unwrap();
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]