App dialog signals to comply with certification

This commit is contained in:
Brahim Hadriche committed 2025-02-27 20:16:58 -05:00
1 parent afe61c2df7
commit bd3ac7b9c1
2 files changed
+17 -2

No files matched your search

+13 -2
View File
@@ -54,8 +54,8 @@ function StartWebServer()
m.dialServer@.StartServer()
end function
function ShowAnnouncement()
DialogUtils.ShowDialogOnce({
function ShowAnnouncement() as void
dialog = DialogUtils.ShowDialogOnce({
messageId: "1736288537"
title: "Announcement - Playlet backend"
message: [
@@ -68,4 +68,15 @@ function ShowAnnouncement()
alwaysOnTop: true
marginWidth: 180
})
if dialog = invalid
return
end if
m.scene.signalBeacon("AppDialogInitiate")
m.top.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
end function
function OnAnnouncementDialogClosed()
m.scene.signalBeacon("AppDialogComplete")
end function