Add home page header and hook up editors

This commit is contained in:
Elias Projahn 2024-06-05 19:03:04 +02:00
parent 38613c0063
commit f49f23a501
10 changed files with 236 additions and 55 deletions

View file

@ -174,6 +174,15 @@ impl MusicusSearchEntry {
self.emit_by_name::<()>("query-changed", &[]);
}
pub fn tags(&self) -> Vec<Tag> {
self.imp()
.tags
.borrow()
.iter()
.map(|t| t.tag().to_owned())
.collect()
}
pub fn query(&self) -> LibraryQuery {
let mut query = LibraryQuery {
search: self.imp().text.text().to_string(),