aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-07-10 14:20:29 +0100
committerGitHub <noreply@github.com>2023-07-10 14:20:29 +0100
commit91c9082d19b957c3295e7a0b5bc6add71e6459b8 (patch)
treeacf56246ae46b3788da7c860831ad967e6ab6b36 /launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
parent4f4ccdaa59b166f74318d78beb7da62512677f96 (diff)
parent908ac813e0f96126a643851e99379956faa08cda (diff)
downloadPrismLauncher-91c9082d19b957c3295e7a0b5bc6add71e6459b8.tar.gz
PrismLauncher-91c9082d19b957c3295e7a0b5bc6add71e6459b8.tar.bz2
PrismLauncher-91c9082d19b957c3295e7a0b5bc6add71e6459b8.zip
Merge pull request #1249 from Trial97/curse
Curseforge modpack export
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackExportTask.cpp')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackExportTask.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
index 50f6a33c..30fe566d 100644
--- a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
+++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp
@@ -64,7 +64,8 @@ bool ModrinthPackExportTask::abort()
if (buildZipFuture.isRunning()) {
buildZipFuture.cancel();
- // NOTE: Here we don't do `emitAborted()` because it will be done when `buildZipFuture` actually cancels, which may not occur immediately.
+ // NOTE: Here we don't do `emitAborted()` because it will be done when `buildZipFuture` actually cancels, which may not occur
+ // immediately.
return true;
}
@@ -94,6 +95,7 @@ void ModrinthPackExportTask::collectFiles()
void ModrinthPackExportTask::collectHashes()
{
+ setStatus(tr("Finding file hashes..."));
for (const QFileInfo& file : files) {
QCoreApplication::processEvents();
@@ -157,6 +159,7 @@ void ModrinthPackExportTask::makeApiRequest()
if (pendingHashes.isEmpty())
buildZip();
else {
+ setStatus(tr("Finding versions for hashes..."));
auto response = std::make_shared<QByteArray>();
task = api.currentVersions(pendingHashes.values(), "sha512", response);
connect(task.get(), &NetJob::succeeded, [this, response]() { parseApiResponse(response); });