Run updateTime() on init instead of waiting for timer to trigger it 60 seconds later
This commit is contained in:
parent
3e0cfc37ad
commit
a870ed3c4a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user