aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-04-21 22:12:14 -0300
committerflow <thiagodonato300@gmail.com>2022-05-12 18:11:49 -0300
commit8c8eabf7ac1920b47792b26790f3646cb6693ec0 (patch)
tree4cb5fca254ad911b52f7aaf4b5af6009ea6f6329 /launcher/minecraft
parent649b8ac7c6e12fcf91d204f908e027d3bfbb6a2a (diff)
downloadPrismLauncher-8c8eabf7ac1920b47792b26790f3646cb6693ec0.tar.gz
PrismLauncher-8c8eabf7ac1920b47792b26790f3646cb6693ec0.tar.bz2
PrismLauncher-8c8eabf7ac1920b47792b26790f3646cb6693ec0.zip
refactor: organize a little more the code in launcher/net/
This also reduces some code duplication by using some Task logic in NetAction.
Diffstat (limited to 'launcher/minecraft')
-rw-r--r--launcher/minecraft/AssetsUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/AssetsUtils.cpp b/launcher/minecraft/AssetsUtils.cpp
index 7290aeb4..281f730f 100644
--- a/launcher/minecraft/AssetsUtils.cpp
+++ b/launcher/minecraft/AssetsUtils.cpp
@@ -297,7 +297,7 @@ NetAction::Ptr AssetObject::getDownloadAction()
auto rawHash = QByteArray::fromHex(hash.toLatin1());
objectDL->addValidator(new Net::ChecksumValidator(QCryptographicHash::Sha1, rawHash));
}
- objectDL->m_total_progress = size;
+ objectDL->setProgress(objectDL->getProgress(), size);
return objectDL;
}
return nullptr;