Don't draw progress bar when % is 0
This commit is contained in:
parent
cf508c1d22
commit
a8fda48c72
@ -103,7 +103,8 @@ class Bubble(hippo.CanvasBox, hippo.CanvasItem):
|
|||||||
cr.set_line_width(line_width)
|
cr.set_line_width(line_width)
|
||||||
cr.stroke();
|
cr.stroke();
|
||||||
|
|
||||||
self._paint_progress_bar(cr, x, y, width, height, line_width)
|
if self._percent > 0:
|
||||||
|
self._paint_progress_bar(cr, x, y, width, height, line_width)
|
||||||
|
|
||||||
def _paint_progress_bar(self, cr, x, y, width, height, line_width):
|
def _paint_progress_bar(self, cr, x, y, width, height, line_width):
|
||||||
prog_x = x + line_width
|
prog_x = x + line_width
|
||||||
|
Loading…
Reference in New Issue
Block a user