mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-27 04:07:25 +01:00
Add home page header and hook up editors
This commit is contained in:
parent
38613c0063
commit
f49f23a501
10 changed files with 236 additions and 55 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue