fix trickplay check and remove debug code

This commit is contained in:
Alex Wardle 2022-12-20 19:38:26 -07:00
parent 9277bf0556
commit f1b433195d

View File

@ -222,12 +222,7 @@ end sub
function onKeyEvent(key as string, press as boolean) as boolean
' don't do anything if trick play bar is visible
if m.top.trickPlayBar.visible
return false
end if
if key = "OK" and m.nextEpisodeButton.hasfocus()
if key = "OK" and m.nextEpisodeButton.hasfocus() and not m.top.trickPlayBar.visible
m.top.state = "finished"
hideNextEpisodeButton()
return true
@ -248,9 +243,8 @@ function onKeyEvent(key as string, press as boolean) as boolean
else if key = "up"
m.top.selectPlaybackInfoPressed = true
return true
else if key = "OK"
print("OK pressed")
' OK will play/pause depending on current state
else if key = "OK" and not m.top.trickPlayBar.visible
if m.top.state = "paused"
m.top.control = "resume"
return true