Fix focus on library row

This commit is contained in:
1hitsong 2023-12-07 08:12:42 -05:00
parent f0890c0f3b
commit fc8e80d999

View File

@ -280,6 +280,12 @@ sub createLibraryRow()
' Row already exists, replace it with new content
if sectionExists(sectionName)
m.top.content.replaceChild(row, getSectionIndex(sectionName))
' Reset focus to item within the row, if it was previous highlighted
if m.top.rowItemFocused[0] = getSectionIndex(sectionName)
m.top.jumpToRowItem = [m.top.rowItemFocused[0], m.top.rowItemFocused[1]]
end if
setRowItemSize()
return
end if