diff --git a/src/gui.rs b/src/gui.rs index af7cc62..5c39669 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -237,6 +237,10 @@ fn load_images( let flowbox_clone = Rc::clone(flowbox); let (sender, receiver) = mpsc::channel::<(Texture, String)>(); + while let Some(child) = flowbox.borrow().first_child() { + flowbox.borrow().remove(&child); + } + std::thread::spawn(move || { let num_cores = num_cpus::get(); batch