aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-24 15:58:55 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-24 15:58:55 +0300
commit7fdd68d7682ea32404c07337b610365bcf4c7083 (patch)
tree57355c6ba2fadb6673c34aee64c573435e91326e /launcher/modplatform/modrinth
parent69c709b05a90f342cc9d1f9337457bb5519a87a9 (diff)
parentdf6d46de9e648284a788a327b87698d58a4fc145 (diff)
downloadPrismLauncher-7fdd68d7682ea32404c07337b610365bcf4c7083.tar.gz
PrismLauncher-7fdd68d7682ea32404c07337b610365bcf4c7083.tar.bz2
PrismLauncher-7fdd68d7682ea32404c07337b610365bcf4c7083.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into develop
Diffstat (limited to 'launcher/modplatform/modrinth')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackExportTask.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
index c607bb89..4cd88aa6 100644
--- a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
+++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
@@ -134,8 +134,8 @@ void ModrinthPackExportTask::collectHashes()
QCryptographicHash sha1(QCryptographicHash::Algorithm::Sha1);
sha1.addData(data);
- ResolvedFile file{ sha1.result().toHex(), sha512.result().toHex(), url.toString(), openFile.size() };
- resolvedFiles[relative] = file;
+ ResolvedFile resolvedFile{ sha1.result().toHex(), sha512.result().toHex(), url.toEncoded(), openFile.size() };
+ resolvedFiles[relative] = resolvedFile;
// nice! we've managed to resolve based on local metadata!
// no need to enqueue it