Fix app launch and app dialog events
This commit is contained in:
1 parent
6095901939
commit
840474c20c
2 files changed
+14
-8
No files matched your search
@@ -38,9 +38,10 @@ function MainSceneContainerChanged()
|
|||||||
StartWebServer()
|
StartWebServer()
|
||||||
HideLoadingScreen()
|
HideLoadingScreen()
|
||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
|
if not ShowAnnouncement()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
|
end if
|
||||||
CopyLoadingMessagesToCache()
|
CopyLoadingMessagesToCache()
|
||||||
ShowAnnouncement()
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
@@ -54,7 +55,7 @@ function StartWebServer()
|
|||||||
m.dialServer@.StartServer()
|
m.dialServer@.StartServer()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ShowAnnouncement() as void
|
function ShowAnnouncement() as boolean
|
||||||
dialog = DialogUtils.ShowDialogOnce({
|
dialog = DialogUtils.ShowDialogOnce({
|
||||||
messageId: "1747362859"
|
messageId: "1747362859"
|
||||||
title: "Announcement - YouTube account support"
|
title: "Announcement - YouTube account support"
|
||||||
@@ -70,13 +71,15 @@ function ShowAnnouncement() as void
|
|||||||
})
|
})
|
||||||
|
|
||||||
if dialog = invalid
|
if dialog = invalid
|
||||||
return
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.scene.signalBeacon("AppDialogInitiate")
|
m.scene.signalBeacon("AppDialogInitiate")
|
||||||
m.top.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
|
dialog.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
|
||||||
|
return true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnAnnouncementDialogClosed()
|
function OnAnnouncementDialogClosed()
|
||||||
m.scene.signalBeacon("AppDialogComplete")
|
m.scene.signalBeacon("AppDialogComplete")
|
||||||
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
end function
|
end function
|
||||||
@@ -37,9 +37,10 @@ function MainSceneContainerChanged()
|
|||||||
StartWebServer()
|
StartWebServer()
|
||||||
HideLoadingScreen()
|
HideLoadingScreen()
|
||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
|
if not ShowAnnouncement()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
|
end if
|
||||||
CopyLoadingMessagesToCache()
|
CopyLoadingMessagesToCache()
|
||||||
ShowAnnouncement()
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
@@ -51,7 +52,7 @@ function StartWebServer()
|
|||||||
m.dialServer.callfunc("StartServer", invalid)
|
m.dialServer.callfunc("StartServer", invalid)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ShowAnnouncement() as void
|
function ShowAnnouncement() as boolean
|
||||||
dialog = DialogUtils_ShowDialogOnce({
|
dialog = DialogUtils_ShowDialogOnce({
|
||||||
messageId: "1747362859"
|
messageId: "1747362859"
|
||||||
title: "Announcement - YouTube account support"
|
title: "Announcement - YouTube account support"
|
||||||
@@ -66,13 +67,15 @@ function ShowAnnouncement() as void
|
|||||||
marginWidth: 180
|
marginWidth: 180
|
||||||
})
|
})
|
||||||
if dialog = invalid
|
if dialog = invalid
|
||||||
return
|
return false
|
||||||
end if
|
end if
|
||||||
m.scene.signalBeacon("AppDialogInitiate")
|
m.scene.signalBeacon("AppDialogInitiate")
|
||||||
m.top.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
|
dialog.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
|
||||||
|
return true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnAnnouncementDialogClosed()
|
function OnAnnouncementDialogClosed()
|
||||||
m.scene.signalBeacon("AppDialogComplete")
|
m.scene.signalBeacon("AppDialogComplete")
|
||||||
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
end function
|
end function
|
||||||
'//# sourceMappingURL=./MainScene.brs.map
|
'//# sourceMappingURL=./MainScene.brs.map
|
||||||
Reference in new issue
Block a user