fix scrolling performance of grid views when not showing album year

This commit is contained in:
Drew Weymouth
2024-12-21 11:13:12 -08:00
parent e174f08fe1
commit 800a15683d
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -207,7 +207,8 @@ func NewGridViewItem(placeholderResource fyne.Resource) *GridViewItem {
func (g *GridViewItem) NeedsUpdate(model GridViewItemModel) bool {
return g.itemID != model.ID || !slices.Equal(g.secondaryIDs, model.SecondaryIDs) ||
g.secondaryText.Suffix != model.Suffix
(g.ShowSuffix && g.secondaryText.Suffix != model.Suffix) ||
(!g.ShowSuffix && g.secondaryText.Suffix != "")
}
func (g *GridViewItem) Update(model GridViewItemModel) {