Rename ItemGrid2 to ItemGrid

This commit is contained in:
Neil Burrows 2021-02-12 15:19:30 +00:00
parent ef748eba18
commit fd36765696
4 changed files with 4 additions and 8 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<component name="ItemGrid2" extends="JFGroup">
<component name="ItemGrid" extends="JFGroup">
<children>
<poster id="backdrop"
loadDisplayMode="scaleToFill"
@ -39,5 +39,5 @@
<script type="text/brightscript" uri="pkg:/source/utils/misc.brs" />
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
<script type="text/brightscript" uri="pkg:/source/utils/deviceCapabilities.brs" />
<script type="text/brightscript" uri="ItemGrid2.brs" />
<script type="text/brightscript" uri="ItemGrid.brs" />
</component>

View File

@ -191,11 +191,7 @@ sub Main()
end if
else
' TODO - switch on more node types
if selectedItem.type = "CollectionFolder" OR selectedItem.type = "UserView" then
message_dialog("This library type is not yet implemented: " + selectedItem.collectionType + ".")
else
message_dialog("This library type is not yet implemented: " + selectedItem.type + ".")
end if
message_dialog("This type is not yet supported: " + selectedItem.type + ".")
selectedItem = invalid
end if
else if isNodeEvent(msg, "movieSelected")

View File

@ -249,7 +249,7 @@ function CreateSeasonDetailsGroup(series, season)
end function
function CreateItemGrid(libraryItem)
group = CreateObject("roSGNode", "ItemGrid2")
group = CreateObject("roSGNode", "ItemGrid")
group.parentItem = libraryItem
group.observeField("selectedItem", m.port)
return group