diff options
author | Jeix <devnull@localhost> | 2011-02-11 20:17:20 +0100 |
---|---|---|
committer | Jeix <devnull@localhost> | 2011-02-11 20:17:20 +0100 |
commit | 4a6cfe415a0d362bf30f22fac16b732195f97232 (patch) | |
tree | f90318302830b967b4734fc1e7d82eda6d52a8fc /module/gui/Overview.py | |
parent | socket code fixes (diff) | |
download | pyload-4a6cfe415a0d362bf30f22fac16b732195f97232.tar.xz |
GUI updates, closed #181, updated XDCC, fixed FileSonic
Diffstat (limited to 'module/gui/Overview.py')
-rw-r--r-- | module/gui/Overview.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/gui/Overview.py b/module/gui/Overview.py index 205d85234..533c6faa8 100644 --- a/module/gui/Overview.py +++ b/module/gui/Overview.py @@ -160,10 +160,10 @@ class OverviewDelegate(QItemDelegate): size = "%s KiB" % kbytes return size - #if progress == 100: - sizeline = QString(_("Size: %s") % formatSize(maxSize)) - #else: - # sizeline = QString(_("Size: %s/%s") % (formatSize(currentSize), formatSize(maxSize))) + if progress in (0,100): + sizeline = QString(_("Size: %s") % formatSize(maxSize)) + else: + sizeline = QString(_("Size: %s / %s") % (formatSize(currentSize), formatSize(maxSize))) f = painter.font() f.setPointSize(12) |