feat: render if need

Signed-off-by: SouthFox <master@southfox.me>
This commit is contained in:
SouthFox 2024-10-29 17:08:29 +08:00
parent fb117e328a
commit bf128418cc

View file

@ -171,7 +171,8 @@
(begin (begin
((timeout-function-func i)) ((timeout-function-func i))
(set-timeout-function-countdown! i (timeout-function-interval i)) (set-timeout-function-countdown! i (timeout-function-interval i))
(render)) (if (equal? *template* template-click)
(render)))
(set-timeout-function-countdown! i (- (timeout-function-countdown i) 1)))) (set-timeout-function-countdown! i (- (timeout-function-countdown i) 1))))
*update-list*) *update-list*)
(timeout update-callback dt)) (timeout update-callback dt))