From 03fdcb32535b1920a6c9ac0875ea7d44a47969be Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 17 May 2013 07:54:41 +0200 Subject: [PATCH] Fixed progressbar bug. --- manga/reader.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manga/reader.py b/manga/reader.py index 6694ecd..51d2779 100644 --- a/manga/reader.py +++ b/manga/reader.py @@ -295,11 +295,12 @@ class msgproc(object): self._prog = None def prog(self, p): - if p is not None and self._prog is None: - self._prog = gtk.ProgressBar() + if p is not None: + if self._prog is None: + self._prog = gtk.ProgressBar() + self.hlay.pack_start(self._prog, padding=5) + self._prog.show() self._prog.set_fraction(p) - self.hlay.pack_start(self._prog, padding=5) - self._prog.show() elif p is None and self._prog is not None: self.hlay.remove(self._prog) self._prog = None -- 2.11.0