move to a separate save/delete binding approach
this is to address accidental deletions of playlists/tracks that some users faced closes #75 related #15
This commit is contained in:
@@ -186,6 +186,14 @@ impl ListItem for Artist {
|
||||
}
|
||||
}
|
||||
|
||||
fn save(&mut self, library: Arc<Library>) {
|
||||
library.follow_artist(self);
|
||||
}
|
||||
|
||||
fn unsave(&mut self, library: Arc<Library>) {
|
||||
library.unfollow_artist(self);
|
||||
}
|
||||
|
||||
fn toggle_saved(&mut self, library: Arc<Library>) {
|
||||
if library.is_followed_artist(self) {
|
||||
library.unfollow_artist(self);
|
||||
|
||||
Reference in New Issue
Block a user