This commit is contained in:
Daniel Hahler 2023-12-12 05:32:06 -07:00 committed by GitHub
commit 75725de146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -362,5 +362,18 @@ function vicious.call_async(wtype, format, warg, callback)
end
-- }}}
-- {{{ Change the timer of a registered widget.
function vicious.change_timer(reg, timeout)
if not reg then return end
local cur = reg.timeout
if timeout ~= cur then
vicious.unregister(nil, true, reg)
reg.timeout = timeout
regregister(reg)
end
return cur
end
-- }}}
return vicious
-- }}}