update function definitions

This commit is contained in:
Charles Ewert 2024-01-08 22:55:05 -05:00
parent b41e08f232
commit 7b37ca11db
4 changed files with 10 additions and 9 deletions

View File

@ -157,8 +157,7 @@ sub clearErrorMessage()
m.top.errorMessage = "" m.top.errorMessage = ""
end sub end sub
' JFScreen hook. ' JFScreen hook called when the screen is displayed by the screen manager
' Used to show logo, update the focus, the state of the data, and tells the server about the device profile.
sub OnScreenShown() sub OnScreenShown()
scene = m.top.getScene() scene = m.top.getScene()
overhang = scene.findNode("overhang") overhang = scene.findNode("overhang")

View File

@ -30,8 +30,7 @@ sub loadLibraries()
m.fadeInFocusBitmap.control = "start" m.fadeInFocusBitmap.control = "start"
end sub end sub
' JFScreen hook. ' JFScreen hook called when the screen is displayed by the screen manager
' Used to show logo, update the focus, the state of the data, and tells the server about the device profile.
sub OnScreenShown() sub OnScreenShown()
scene = m.top.getScene() scene = m.top.getScene()
overhang = scene.findNode("overhang") overhang = scene.findNode("overhang")
@ -61,8 +60,7 @@ sub OnScreenShown()
end if end if
end sub end sub
' JFScreen hook. ' JFScreen hook called when the screen is hidden by the screen manager
' Remove the Jellyfin logo and left seperator from the overhang
sub OnScreenHidden() sub OnScreenHidden()
scene = m.top.getScene() scene = m.top.getScene()
overhang = scene.findNode("overhang") overhang = scene.findNode("overhang")

View File

@ -94,7 +94,12 @@ sub processUserSections()
' Add home sections in order based on user settings ' Add home sections in order based on user settings
loadedSections = 0 loadedSections = 0
for i = 0 to 6 for i = 0 to 6
sectionName = LCase(m.global.session.user.settings["homesection" + i.toStr()]) sectionName = m.global.session.user.settings["homesection" + i.toStr()]
if isValid(sectionName)
sectionName = LCase(sectionName)
else
exit for
end if
sectionLoaded = false sectionLoaded = false
if sectionName <> "none" if sectionName <> "none"
sectionLoaded = addHomeSection(sectionName) sectionLoaded = addHomeSection(sectionName)

View File

@ -24,8 +24,7 @@ sub redraw()
m.top.findNode("UserRow").translation = [leftBorder, topBorder] m.top.findNode("UserRow").translation = [leftBorder, topBorder]
end sub end sub
' JFScreen hook. ' JFScreen hook called when the screen is displayed by the screen manager
' Used to show logo, update the focus, the state of the data, and tells the server about the device profile.
sub OnScreenShown() sub OnScreenShown()
scene = m.top.getScene() scene = m.top.getScene()
overhang = scene.findNode("overhang") overhang = scene.findNode("overhang")