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
@@ -168,8 +168,8 @@ func NewTracklist(tracks []*mediaprovider.Track) *Tracklist {
t.tracksMutex.RUnlock()
tr := item.(*TrackRow)
t.list.SetItemForID(itemID, tr)
if tr.trackID != model.track.ID || tr.ListItemID != itemID {
t.list.SetItemForID(itemID, tr)
tr.ListItemID = itemID
}
i := -1 // signal that we want to display the actual track num.