Fix Cinema Mode Intro bug

This commit is contained in:
1hitsong 2022-10-21 12:09:28 -04:00
parent a146ea7ee2
commit 4ce9f18152
2 changed files with 8 additions and 2 deletions

View File

@ -146,7 +146,13 @@ end sub
' '
' Clear previous scene from group stack ' Clear previous scene from group stack
sub clearPreviousScene() sub clearPreviousScene()
m.groups.Delete(2) m.groups.pop()
end sub
'
' Delete X number of scenes from group stack
sub deletePreviousScene(sceneLength = 1)
m.groups.Delete(sceneLength)
end sub end sub
' '

View File

@ -420,7 +420,7 @@ sub Main (args as dynamic) as void
if m.selectedItemType = "TvChannel" and node.state = "finished" if m.selectedItemType = "TvChannel" and node.state = "finished"
video = CreateVideoPlayerGroup(node.id) video = CreateVideoPlayerGroup(node.id)
m.global.sceneManager.callFunc("pushScene", video) m.global.sceneManager.callFunc("pushScene", video)
m.global.sceneManager.callFunc("clearPreviousScene") m.global.sceneManager.callFunc("deletePreviousScene", 2)
else if node.state = "finished" else if node.state = "finished"
node.control = "stop" node.control = "stop"