Reset query after library changes

This commit is contained in:
Elias Projahn 2025-01-17 18:16:01 +01:00
parent d7401195b3
commit 510061b3b0
2 changed files with 67 additions and 3 deletions

View file

@ -102,6 +102,11 @@ mod imp {
obj.query(&entry.query());
});
let obj = self.obj().to_owned();
self.library.get().unwrap().connect_changed(move |_| {
obj.imp().search_entry.reset();
});
self.player
.get()
.unwrap()