Remove data from home task nodes after use
This commit is contained in:
parent
f1afdcce86
commit
6019f959b6
|
@ -55,6 +55,7 @@ sub onLibrariesLoaded()
|
||||||
' save data for other functions
|
' save data for other functions
|
||||||
m.libraryData = m.LoadLibrariesTask.content
|
m.libraryData = m.LoadLibrariesTask.content
|
||||||
m.LoadLibrariesTask.unobserveField("content")
|
m.LoadLibrariesTask.unobserveField("content")
|
||||||
|
m.LoadLibrariesTask.content = []
|
||||||
' create My Media, Continue Watching, and Next Up rows
|
' create My Media, Continue Watching, and Next Up rows
|
||||||
content = CreateObject("roSGNode", "ContentNode")
|
content = CreateObject("roSGNode", "ContentNode")
|
||||||
mediaRow = content.CreateChild("HomeRow")
|
mediaRow = content.CreateChild("HomeRow")
|
||||||
|
@ -101,8 +102,9 @@ function updateHomeRows()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function updateContinueItems()
|
function updateContinueItems()
|
||||||
m.LoadContinueTask.unobserveField("content")
|
|
||||||
itemData = m.LoadContinueTask.content
|
itemData = m.LoadContinueTask.content
|
||||||
|
m.LoadContinueTask.unobserveField("content")
|
||||||
|
m.LoadContinueTask.content = []
|
||||||
|
|
||||||
if itemData = invalid then return false
|
if itemData = invalid then return false
|
||||||
|
|
||||||
|
@ -141,8 +143,9 @@ function updateContinueItems()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function updateNextUpItems()
|
function updateNextUpItems()
|
||||||
m.LoadNextUpTask.unobserveField("content")
|
|
||||||
itemData = m.LoadNextUpTask.content
|
itemData = m.LoadNextUpTask.content
|
||||||
|
m.LoadNextUpTask.unobserveField("content")
|
||||||
|
m.LoadNextUpTask.content = []
|
||||||
|
|
||||||
if itemData = invalid then return false
|
if itemData = invalid then return false
|
||||||
|
|
||||||
|
@ -209,6 +212,7 @@ function updateLatestItems(msg)
|
||||||
data = msg.getField()
|
data = msg.getField()
|
||||||
node = msg.getRoSGNode()
|
node = msg.getRoSGNode()
|
||||||
node.unobserveField("content")
|
node.unobserveField("content")
|
||||||
|
node.content = []
|
||||||
|
|
||||||
if itemData = invalid then return false
|
if itemData = invalid then return false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user