bring back support for disabling progressbar in footer (#2753)

* footer(optimize): remove dead code

* footer(fix): disable auto refresh time option when current time is not checked

* fix: support disable progress bar again
This commit is contained in:
Qingping Hou
2017-04-11 02:44:58 -07:00
committed by Frans de Jonge
parent 9d39f11f59
commit 15fd7fc0ff
3 changed files with 76 additions and 38 deletions

View File

@@ -58,6 +58,8 @@ function ProgressWidget:paintTo(bb, x, y)
w = my_size.w,
h = my_size.h
}
if self.dimen.w == 0 or self.dimen.h == 0 then return end
-- fill background
bb:paintRoundedRect(x, y, my_size.w, my_size.h, self.bgcolor, self.radius)
-- paint border