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:
Uli Schlachter 2009-08-27 08:58:37 +02:00 committed by Julien Danjou
parent c0661abc61
commit ac60bbd147
1 changed files with 1 additions and 0 deletions

View File

@ -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