Only signal EPG Performance Monitoring events once

This commit is contained in:
Neil Burrows 2021-08-01 09:24:57 +01:00
parent 451be6bdf2
commit 10ca08bdf8
2 changed files with 6 additions and 2 deletions

View File

@ -323,9 +323,9 @@ sub optionsClosed()
end sub
sub showTVGuide()
m.top.signalBeacon("EPGLaunchInitiate") ' Required Roku Performance monitoring
if m.tvGuide = invalid
m.tvGuide = createObject("roSGNode", "Schedule")
m.top.signalBeacon("EPGLaunchInitiate") ' Required Roku Performance monitoring
end if
m.tvGuide.observeField("watchChannel", "onChannelSelected")
m.top.appendChild(m.tvGuide)

View File

@ -1,5 +1,6 @@
sub init()
m.EPGLaunchCompleteSignaled = false
m.scheduleGrid = m.top.findNode("scheduleGrid")
m.detailsPane = m.top.findNode("detailsPane")
@ -55,7 +56,10 @@ sub onChannelsLoaded()
m.LoadProgramDetailsTask.observeField("programDetails", "onProgramDetailsLoaded")
m.scheduleGrid.setFocus(true)
m.top.signalBeacon("EPGLaunchComplete") ' Required Roku Performance monitoring
if m.EPGLaunchCompleteSignaled = false
m.top.signalBeacon("EPGLaunchComplete") ' Required Roku Performance monitoring
m.EPGLaunchCompleteSignaled = true
end if
m.LoadChannelsTask.channels = []
end sub