fix: show checkmark for saved playlists instead of followed
`is_followed_playlist()` only works within the library context. In the search view it almost always evaluates to `true` as most playlists are owned by other users. fixes #213
This commit is contained in:
@@ -126,7 +126,7 @@ impl ListItem for Playlist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn display_right(&self, library: Arc<Library>) -> String {
|
fn display_right(&self, library: Arc<Library>) -> String {
|
||||||
let followed = if library.is_followed_playlist(self) {
|
let saved = if library.is_saved_playlist(self) {
|
||||||
if library.use_nerdfont {
|
if library.use_nerdfont {
|
||||||
"\u{f62b} "
|
"\u{f62b} "
|
||||||
} else {
|
} else {
|
||||||
@@ -142,7 +142,7 @@ impl ListItem for Playlist {
|
|||||||
.map(|t| t.len())
|
.map(|t| t.len())
|
||||||
.unwrap_or(self.num_tracks);
|
.unwrap_or(self.num_tracks);
|
||||||
|
|
||||||
format!("{}{:>4} tracks", followed, num_tracks)
|
format!("{}{:>4} tracks", saved, num_tracks)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn play(&mut self, queue: Arc<Queue>) {
|
fn play(&mut self, queue: Arc<Queue>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user