Merge pull request #1559 from 1hitsong/fixHomeLibraryFocus
This commit is contained in:
commit
0a05b9bb9b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user