hook up rating and favorite actions

This commit is contained in:
Drew Weymouth
2024-03-02 09:28:35 -08:00
parent fee1dd66bb
commit cbbebf6eb5
2 changed files with 13 additions and 10 deletions
-8
View File
@@ -29,10 +29,8 @@ type LargeNowPlayingCard struct {
OnArtistNameTapped func(artistID string)
OnAlbumNameTapped func()
OnShowCoverImage func()
OnSetRating func(rating int)
OnSetFavorite func(favorite bool)
OnAddToPlaylist func()
}
func NewLargeNowPlayingCard() *LargeNowPlayingCard {
@@ -87,12 +85,6 @@ func (n *LargeNowPlayingCard) onArtistNameTapped(artistID string) {
}
}
func (n *LargeNowPlayingCard) onShowCoverImage(*fyne.PointEvent) {
if n.OnShowCoverImage != nil {
n.OnShowCoverImage()
}
}
func (n *LargeNowPlayingCard) onToggleFavorite() {
n.favorite.Favorite = !n.favorite.Favorite
n.favorite.Refresh()