progressbar: set_value() should update()
set_value() didn't call update() and thus had no visible effect on the progressbar. Signed-off-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c0661abc61
commit
ac60bbd147
|
@ -116,6 +116,7 @@ end
|
|||
function set_value(pbar, value)
|
||||
local value = value or 0
|
||||
data[pbar].value = math.min(1, math.max(0, value))
|
||||
update(pbar)
|
||||
return pbar
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue