refresh favorite button on potential state change

This commit is contained in:
Drew Weymouth
2023-03-08 17:20:52 -08:00
parent 2ac5a4ffd1
commit c8fd7038fb
+1
View File
@@ -156,6 +156,7 @@ func (a *ArtistPageHeader) Update(artist *subsonic.ArtistID3) {
return
}
a.favoriteBtn.IsFavorited = !artist.Starred.IsZero()
a.favoriteBtn.Refresh()
a.artistID = artist.ID
a.titleDisp.Segments[0].(*widget.TextSegment).Text = artist.Name
a.titleDisp.Refresh()