aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-04-07 11:03:11 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-04-07 11:03:11 +0100
commit813ccc1381f8cb128d0bdcaac1e62d76e8b74289 (patch)
tree5a4bd6b744dc5815c8a47745d36d8fa9fe51e585 /launcher/modplatform/modrinth
parentb65f4c9536691096d44ae427ff71bfe971592747 (diff)
downloadPrismLauncher-813ccc1381f8cb128d0bdcaac1e62d76e8b74289.tar.gz
PrismLauncher-813ccc1381f8cb128d0bdcaac1e62d76e8b74289.tar.bz2
PrismLauncher-813ccc1381f8cb128d0bdcaac1e62d76e8b74289.zip
How did i-
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/modplatform/modrinth')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackExportTask.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
index 2618074e..fc16f912 100644
--- a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
+++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
@@ -164,7 +164,7 @@ void ModrinthPackExportTask::parseApiResponse(QByteArray* response)
task = nullptr;
try {
- QJsonDocument doc = Json::requireDocument(*response);
+ const QJsonDocument doc = Json::requireDocument(*response);
QMapIterator<QString, QString> iterator(pendingHashes);
while (iterator.hasNext()) {
@@ -188,6 +188,7 @@ void ModrinthPackExportTask::parseApiResponse(QByteArray* response)
qWarning() << "Failed to parse versions response" << e.what();
}
pendingHashes.clear();
+ buildZip();
}
void ModrinthPackExportTask::buildZip()