kind-of works but needs rendering work

This commit is contained in:
Drew Weymouth
2025-07-06 11:18:37 -07:00
parent 295d87a3a5
commit 6931ccb054
4 changed files with 102 additions and 42 deletions
+2 -1
View File
@@ -88,7 +88,7 @@ func (g *GroupedReleases) Refresh() {
g.cardPool.Put(objects[x])
objects[x] = nil
}
if lenItems > len(objects) {
if len(objects) > lenItems {
objects = objects[:lenItems]
}
@@ -100,6 +100,7 @@ func (g *GroupedReleases) Refresh() {
for x := len(objects); x < lenItems; x++ {
card := g.cardPool.Get().(*GridViewItem)
g.doUpdateItemCard(card, &items[x])
objects = append(objects, card)
}
g.sections[i].container.Objects = objects