mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-12-18 11:38:11 +00:00
Notify the user rather than debug about missing features
This commit is contained in:
parent
8c4be5b3b9
commit
04fc7e71be
@ -40,3 +40,12 @@ function leftPad(base as string, fill as string, length as integer) as string
|
||||
end while
|
||||
return base
|
||||
end function
|
||||
|
||||
function make_dialog(message="" as string)
|
||||
dialog = createObject("roSGNode", "Dialog")
|
||||
dialog.id = "popup"
|
||||
dialog.buttons = ["OK"]
|
||||
dialog.message = message
|
||||
|
||||
return dialog
|
||||
end function
|
||||
|
@ -6,7 +6,7 @@ sub ShowServerSelect()
|
||||
screen.show()
|
||||
|
||||
themeScene(scene)
|
||||
scene.findNode("prompt").text = "Connect to Serviette"
|
||||
scene.findNode("prompt").text = "Connect to Server"
|
||||
|
||||
config = scene.findNode("configOptions")
|
||||
items = [
|
||||
@ -116,8 +116,15 @@ sub ShowLibrarySelect()
|
||||
else if target.libraryType = "tvshows"
|
||||
ShowTVShowOptions(target.data)
|
||||
else
|
||||
print Substitute("Library type {0} is not yet implemented", target.libraryType)
|
||||
scene.dialog = make_dialog("This library type is not yet implemented")
|
||||
scene.dialog.observeField("buttonSelected", port)
|
||||
end if
|
||||
else if nodeEventQ(msg, "buttonSelected")
|
||||
if msg.getNode() = "popup"
|
||||
msg.getRoSGNode().close = true
|
||||
end if
|
||||
else
|
||||
print msg
|
||||
end if
|
||||
end while
|
||||
end sub
|
||||
|
Loading…
Reference in New Issue
Block a user