Merge pull request #1559 from 1hitsong/fixHomeLibraryFocus

This commit is contained in:
Charles Ewert 2023-12-07 13:39:17 -05:00 committed by GitHub
commit 0a05b9bb9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,6 +267,11 @@ sub createLibraryRow()
sectionName = tr("My Media")
' We don't refresh library data, so if section already exists, exit
if sectionExists(sectionName)
return
end if
row = CreateObject("roSGNode", "HomeRow")
row.title = sectionName
row.imageWidth = homeRowItemSizes.WIDE_POSTER[0]
@ -277,13 +282,6 @@ sub createLibraryRow()
row.appendChild(item)
end for
' Row already exists, replace it with new content
if sectionExists(sectionName)
m.top.content.replaceChild(row, getSectionIndex(sectionName))
setRowItemSize()
return
end if
' Row does not exist, insert it into the home view
m.top.content.insertChild(row, getOriginalSectionIndex("smalllibrarytiles"))
setRowItemSize()