making the text in the library smarter
This commit is contained in:
parent
40065d2c5a
commit
9b9c337c1b
8 changed files with 65 additions and 22 deletions
|
@ -59,6 +59,10 @@ impl Content for Song {
|
|||
fn background(&self) -> Option<Background> {
|
||||
self.background.clone()
|
||||
}
|
||||
|
||||
fn subtext(&self) -> String {
|
||||
self.author.clone().unwrap_or("Author missing".into())
|
||||
}
|
||||
}
|
||||
|
||||
impl ServiceTrait for Song {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue