From 7783e7520e8121434bef1a0ef1c606105e5c7a95 Mon Sep 17 00:00:00 2001 From: sevenrats Date: Mon, 30 Jan 2023 20:07:51 -0500 Subject: [PATCH] dont put buttons on playback failure dialogs --- components/JFVideo.brs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/components/JFVideo.brs b/components/JFVideo.brs index a6fe67fc..88e6154f 100644 --- a/components/JFVideo.brs +++ b/components/JFVideo.brs @@ -114,9 +114,7 @@ sub onState(msg) ' If an error was encountered, Display dialog dialog = createObject("roSGNode", "Dialog") dialog.title = tr("Error During Playback") - dialog.buttons = [tr("OK")] dialog.message = tr("An error was encountered while playing this item.") - dialog.observeField("buttonSelected", "dialogClosed") m.top.getScene().dialog = dialog end if @@ -199,9 +197,7 @@ sub bufferCheck(msg) ' If buffering has stopped Display dialog dialog = createObject("roSGNode", "Dialog") dialog.title = tr("Error Retrieving Content") - dialog.buttons = [tr("OK")] dialog.message = tr("There was an error retrieving the data for this item from the server.") - dialog.observeField("buttonSelected", "dialogClosed") m.top.getScene().dialog = dialog ' Stop playback and exit player @@ -212,14 +208,6 @@ sub bufferCheck(msg) end sub -' -' Clean up on Dialog Closed -sub dialogClosed(msg) - sourceNode = msg.getRoSGNode() - sourceNode.unobserveField("buttonSelected") - sourceNode.close = true -end sub - function onKeyEvent(key as string, press as boolean) as boolean if key = "OK" and m.nextEpisodeButton.hasfocus() and not m.top.trickPlayBar.visible