fix bug where album card on artist page would occasionally show artist name instead of year

This commit is contained in:
Drew Weymouth
2023-08-02 15:32:30 -06:00
parent a53a270730
commit cf09912474
2 changed files with 7 additions and 8 deletions
+1 -2
View File
@@ -241,12 +241,11 @@ func (g *GridView) doUpdateItemCard(itemIdx int, card *GridViewItem) {
}
g.stateMutex.RUnlock()
card.Cover.Im.CenterIcon = g.Placeholder
if card.PrevID == item.ID {
if !card.NeedsUpdate(item) {
// nothing to do
return
}
card.Update(item)
card.PrevID = item.ID
// cancel any previous image fetch (no issues with possible double-invocations)
if card.ImgLoadCancel != nil {
card.ImgLoadCancel()