Run updateTime() on init instead of waiting for timer to trigger it 60 seconds later

This commit is contained in:
Charles Ewert 2023-04-01 09:13:49 -04:00
parent 3e0cfc37ad
commit a870ed3c4a

View File

@ -26,8 +26,10 @@ sub init()
m.overlayMinutes = m.top.findNode("overlayMinutes")
m.overlayMeridian = m.top.findNode("overlayMeridian")
m.overlayMeridian.font.size = 20
' start timer
m.currentTimeTimer = m.top.findNode("currentTimeTimer")
' display current time
updateTime()
' start timer to update clock every minute
m.currentTimeTimer.control = "start"
m.currentTimeTimer.ObserveField("fire", "updateTime")
end if