This commit is contained in:
tsuki 2024-03-20 23:54:05 +08:00
parent b0458c34a5
commit 59a886f222

View File

@ -141,7 +141,8 @@ impl SimpleComponent for SideBarModel {
list_view_wrapper.selection_model.connect_selection_changed(
clone!(@strong sender => move |s,_, _| {
let selection = s.selection();
println!("selection changed: {:?}", selection);
let (iter,_) = gtk::BitsetIter::init_first(&selection).unwrap();
let positions = iter.collect::<Vec<_>>();
}),
);
// let mut bottom_bar_vec = FactoryVecDeque::new(gtk::Box::default(), sender.input_sender());