Avoid double processing of options key after certain video types

This commit is contained in:
JD Layman 2021-08-30 15:22:18 -05:00
parent 9b6023253d
commit 641056435e

View File

@ -139,6 +139,7 @@ sub Main (args as dynamic) as void
' play episode
' todo: create an episode page to link here
video_id = selectedItem.id
m.scene.unobserveField("optionsPressed")
video = CreateVideoPlayerGroup(video_id)
if video <> invalid
group.lastFocus = group.focusedChild
@ -184,6 +185,7 @@ sub Main (args as dynamic) as void
dialog.title = tr("Loading Channel Data")
m.scene.dialog = dialog
m.scene.unobserveField("optionsPressed")
video = CreateVideoPlayerGroup(video_id)
dialog.close = true
@ -258,6 +260,7 @@ sub Main (args as dynamic) as void
' If you select a TV Episode from ANYWHERE, follow this flow
node = getMsgPicker(msg, "picker")
video_id = node.id
m.scene.unobserveField("optionsPressed")
video = CreateVideoPlayerGroup(video_id)
if video <> invalid
group.lastFocus = group.focusedChild