Formatting

This commit is contained in:
Jimi 2022-02-06 10:12:32 -07:00
parent 593f863949
commit c15e554862
3 changed files with 4 additions and 4 deletions

View File

@ -94,7 +94,7 @@ sub loadInitialItems()
showTvGuide()
end if
else if m.top.parentItem.collectionType = "CollectionFolder" or m.top.parentItem.type = "CollectionFolder" or m.top.parentItem.collectionType = "boxsets" or m.top.parentItem.Type = "Folder" or m.top.parentItem.Type = "Channel"
else if m.top.parentItem.collectionType = "CollectionFolder" or m.top.parentItem.type = "CollectionFolder" or m.top.parentItem.collectionType = "boxsets" or m.top.parentItem.Type = "Folder" or m.top.parentItem.Type = "Channel"
' Non-recursive, to not show subfolder contents
m.loadItemsTask.recursive = false
else if m.top.parentItem.collectionType = "Channel"
@ -468,7 +468,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
else if itemToPlay <> invalid and (itemToPlay.type = "Photo" or itemToPlay.type = "PhotoAlbum" or itemToPlay.type = "Folder")
' Spawn photo player task
photoPlayer = CreateObject("roSgNode", "PhotoPlayerTask")
photoPlayer.itemContent = itemToPlay
photoPlayer.itemContent = itemToPlay
photoPlayer.control = "RUN"
end if
return true

View File

@ -15,6 +15,6 @@ sub onPhotoLoaded()
photo.uri = m.LoadLibrariesTask.results
else
'Show user error here (for example if it's not a supported image type)
message_dialog("This image type is not supported.")
message_dialog("This image type is not supported.")
end if
end sub

View File

@ -4,7 +4,7 @@ end sub
sub loadItems()
item = m.top.itemContent
group = CreateObject("roSGNode", "PhotoDetails")
group.optionsAvailable = false
m.global.sceneManager.callFunc("pushScene", group)