Skip to content

Commit a76213b

Browse files
committed
Update code docs
1 parent c3b61b8 commit a76213b

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

docs/components_login_UserSelect.bs.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,18 @@
7878
' Clear backdrop while waiting (forceBackdrop ensures it works before login)
7979
m.global.sceneManager.callFunc("setBackgroundImage", "", false, true)
8080

81-
' Observe field and wait for task to complete
82-
m.global.server.observeFieldScoped("splashscreenEnabled", "onSplashscreenEnabledLoaded")
81+
' Check if value is already cached (from previous session)
82+
serverNode = m.global.server
83+
if isValid(serverNode.splashscreenEnabled)
84+
' Already cached, apply immediately for instant display
85+
m.log.debug("Splashscreen setting already cached, applying immediately")
86+
applySplashscreen(serverNode.splashscreenEnabled)
87+
else
88+
m.log.debug("Splashscreen setting not cached")
89+
end if
8390

84-
' Run the branding config task
91+
' Always observe and refresh in case cached value is stale
92+
serverNode.observeFieldScoped("splashscreenEnabled", "onSplashscreenEnabledLoaded")
8593
m.brandingTask.observeFieldScoped("responseCode", "onBrandingConfigComplete")
8694
m.brandingTask.control = "RUN"
8795
end sub

0 commit comments

Comments
 (0)