Fix search bug

This commit is contained in:
Elias Projahn 2023-10-08 00:30:30 +02:00
parent 3c83452573
commit f4a91acffa
2 changed files with 16 additions and 6 deletions

View file

@ -141,6 +141,7 @@ impl MusicusSearchEntry {
}
self.imp().text.set_text("");
self.emit_by_name::<()>("query-changed", &[]);
}
pub fn add_tag(&self, tag: Tag) {
@ -148,6 +149,7 @@ impl MusicusSearchEntry {
let tag = MusicusSearchTag::new(tag);
self.imp().tags_box.append(&tag);
self.imp().tags.borrow_mut().push(tag);
self.emit_by_name::<()>("query-changed", &[]);
}
pub fn query(&self) -> LibraryQuery {