Fix invalid file size when file is uploaded.

This commit is contained in:
Black Hat
2019-10-01 11:46:05 -07:00
parent f8072a2f4a
commit cbf2176434

View File

@@ -89,7 +89,7 @@ RowLayout {
Label {
Layout.fillWidth: true
text: progressInfo.active ? (humanSize(progressInfo.progress) + "/" + humanSize(progressInfo.total)) : humanSize(content.info ? content.info.size : 0)
text: !progressInfo.completed && progressInfo.active ? (humanSize(progressInfo.progress) + "/" + humanSize(progressInfo.total)) : humanSize(content.info ? content.info.size : 0)
color: MPalette.lighter
wrapMode: Label.Wrap
}