summaryrefslogtreecommitdiffstats
path: root/module/gui/Overview.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/gui/Overview.py')
-rw-r--r--module/gui/Overview.py8
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)