diff --git a/components/home/HomeRows.bs b/components/home/HomeRows.bs index b888da392..958ba22c3 100644 --- a/components/home/HomeRows.bs +++ b/components/home/HomeRows.bs @@ -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()