make sure to always update itemForID maps for focus traversal

This commit is contained in:
Drew Weymouth
2024-02-17 08:22:21 -08:00
parent bc113e404d
commit a46b9559bf
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -197,9 +197,9 @@ func NewGenreList(sorting widgets.ListHeaderSort) *GenreList {
},
func(id widget.ListItemID, item fyne.CanvasObject) {
row := item.(*GenreListRow)
a.list.SetItemForID(id, row)
if row.Item != a.genres[id] {
row.EnsureUnfocused()
a.list.SetItemForID(id, row)
row.ListItemID = id
row.Item = a.genres[id]
row.nameLabel.Text = row.Item.Name