Improve context menus to make the UX/UI more consistent (#923)
* Add save option to context menu of all possible ListItems * Add play options to context menus * Fix for playlists and tracks * Move playback controls into main menu
This commit is contained in:
@@ -324,6 +324,20 @@ impl ListItem for Playlist {
|
||||
))
|
||||
}
|
||||
|
||||
fn is_saved(&self, library: Arc<Library>) -> Option<bool> {
|
||||
// save status of personal playlists can't be toggled for safety
|
||||
if !library.is_followed_playlist(self) {
|
||||
return None;
|
||||
}
|
||||
|
||||
Some(library.is_saved_playlist(self))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn is_playable(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn as_listitem(&self) -> Box<dyn ListItem> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user