From cbf2176434599a975c5a9e91e89041b7bccbc6af Mon Sep 17 00:00:00 2001 From: Black Hat Date: Tue, 1 Oct 2019 11:46:05 -0700 Subject: [PATCH] Fix invalid file size when file is uploaded. --- imports/Spectral/Component/Timeline/FileDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/Spectral/Component/Timeline/FileDelegate.qml b/imports/Spectral/Component/Timeline/FileDelegate.qml index af41c75c4..56e362013 100644 --- a/imports/Spectral/Component/Timeline/FileDelegate.qml +++ b/imports/Spectral/Component/Timeline/FileDelegate.qml @@ -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 }