Merge pull request #1261 from telans/modrinthexport-url

This commit is contained in:
Sefa Eyeoglu 2023-06-24 10:51:14 +02:00
parent 21ccf47ea7
commit 20e9bf0e11
No known key found for this signature in database
GPG Key ID: E13DFD4B47127951

View File

@ -134,8 +134,8 @@ void ModrinthPackExportTask::collectHashes()
QCryptographicHash sha1(QCryptographicHash::Algorithm::Sha1); QCryptographicHash sha1(QCryptographicHash::Algorithm::Sha1);
sha1.addData(data); sha1.addData(data);
ResolvedFile file{ sha1.result().toHex(), sha512.result().toHex(), url.toString(), openFile.size() }; ResolvedFile resolvedFile{ sha1.result().toHex(), sha512.result().toHex(), url.toEncoded(), openFile.size() };
resolvedFiles[relative] = file; resolvedFiles[relative] = resolvedFile;
// nice! we've managed to resolve based on local metadata! // nice! we've managed to resolve based on local metadata!
// no need to enqueue it // no need to enqueue it