aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-07-22 00:29:28 -0300
committerflow <flowlnlnln@gmail.com>2022-08-28 16:29:01 -0300
commita720bcc637957ea7d5ed5594797a682818e4bfef (patch)
tree38bc63b54f53b115e6becc4f4b82006a0578ef3d
parent369a8cdc7497d7bc335b660ac6c14652abe8fde7 (diff)
downloadPrismLauncher-a720bcc637957ea7d5ed5594797a682818e4bfef.tar.gz
PrismLauncher-a720bcc637957ea7d5ed5594797a682818e4bfef.tar.bz2
PrismLauncher-a720bcc637957ea7d5ed5594797a682818e4bfef.zip
fix: bogus progress update when the total step progress was zero
Signed-off-by: flow <flowlnlnln@gmail.com>
-rw-r--r--launcher/tasks/ConcurrentTask.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/launcher/tasks/ConcurrentTask.cpp b/launcher/tasks/ConcurrentTask.cpp
index 2af296b9..ce2f9b87 100644
--- a/launcher/tasks/ConcurrentTask.cpp
+++ b/launcher/tasks/ConcurrentTask.cpp
@@ -132,11 +132,6 @@ void ConcurrentTask::subTaskStatus(const QString& msg)
void ConcurrentTask::subTaskProgress(qint64 current, qint64 total)
{
- if (total == 0) {
- setProgress(0, 100);
- return;
- }
-
m_stepProgress = current;
m_stepTotalProgress = total;
}