[ui] Invoke Timer:new() as a method (API update for gear.timer)

This commit is contained in:
Lorenzo Cogotti 2023-09-19 18:18:51 +02:00
parent c52d9e1608
commit 1c713de4ff
1 changed files with 1 additions and 1 deletions

2
ui.lua
View File

@ -82,7 +82,7 @@ function Ui:new(args)
self.x = self.x or 0
self.y = self.y or 0
self.pointerActive = true
self.timer = Timer.new()
self.timer = Timer:new()
local root = self[1]
if not isinstance(root, Widget) then