Merge pull request #921 from ApexArray/fix-crash-on-invalid-optionsAvailable
Fix crash when pressing options button during initial video buffering
This commit is contained in:
commit
ad66045c60
|
@ -11,7 +11,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
||||||
return true
|
return true
|
||||||
else if key = "options"
|
else if key = "options"
|
||||||
group = m.global.sceneManager.callFunc("getActiveScene")
|
group = m.global.sceneManager.callFunc("getActiveScene")
|
||||||
if group <> invalid and group.optionsAvailable
|
if isValid(group) and isValid(group.optionsAvailable) and group.optionsAvailable
|
||||||
group.lastFocus = group.focusedChild
|
group.lastFocus = group.focusedChild
|
||||||
panel = group.findNode("options")
|
panel = group.findNode("options")
|
||||||
panel.visible = true
|
panel.visible = true
|
||||||
|
|
|
@ -8,4 +8,5 @@
|
||||||
<field id="exit" type="boolean" alwaysNotify="true" />
|
<field id="exit" type="boolean" alwaysNotify="true" />
|
||||||
</interface>
|
</interface>
|
||||||
<script type="text/brightscript" uri="JFScene.brs" />
|
<script type="text/brightscript" uri="JFScene.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/misc.brs" />
|
||||||
</component>
|
</component>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user