Solve #169 Fix on_layout_change

This commit is contained in:
Insality
2022-02-28 21:37:23 +02:00
parent 3b329f9c25
commit 2d78bcb5e9
9 changed files with 499 additions and 7 deletions

View File

@@ -87,6 +87,12 @@ function Timer.update(self, dt)
end
end
function Timer.on_layout_change(self)
self:set_to(self.last_value)
end
--- Set text to text field
-- @tparam Timer self
-- @tparam number set_to Value in seconds