refresh favorite button on potential state change
This commit is contained in:
@@ -156,6 +156,7 @@ func (a *ArtistPageHeader) Update(artist *subsonic.ArtistID3) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
a.favoriteBtn.IsFavorited = !artist.Starred.IsZero()
|
a.favoriteBtn.IsFavorited = !artist.Starred.IsZero()
|
||||||
|
a.favoriteBtn.Refresh()
|
||||||
a.artistID = artist.ID
|
a.artistID = artist.ID
|
||||||
a.titleDisp.Segments[0].(*widget.TextSegment).Text = artist.Name
|
a.titleDisp.Segments[0].(*widget.TextSegment).Text = artist.Name
|
||||||
a.titleDisp.Refresh()
|
a.titleDisp.Refresh()
|
||||||
|
|||||||
Reference in New Issue
Block a user