diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-09-28 23:06:18 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-09-28 23:06:18 +0300 |
commit | 4802f6950e45d795303d3bc89d6f2e56293d2618 (patch) | |
tree | 3ba73bcdd89f278aaab6826e10c7c5659e5f71b6 /launcher/modplatform/flame/FlamePackExportTask.cpp | |
parent | 5b7c5607a90cbb6ff78ba140a15d6180842d069b (diff) | |
parent | 531b58093eadba6bd856c4e30fb3b9a30dc270ee (diff) | |
download | PrismLauncher-4802f6950e45d795303d3bc89d6f2e56293d2618.tar.gz PrismLauncher-4802f6950e45d795303d3bc89d6f2e56293d2618.tar.bz2 PrismLauncher-4802f6950e45d795303d3bc89d6f2e56293d2618.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into feat/acknowledge_release_type
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/flame/FlamePackExportTask.cpp')
-rw-r--r-- | launcher/modplatform/flame/FlamePackExportTask.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/modplatform/flame/FlamePackExportTask.cpp b/launcher/modplatform/flame/FlamePackExportTask.cpp index d86d34bf..b5ab7bc7 100644 --- a/launcher/modplatform/flame/FlamePackExportTask.cpp +++ b/launcher/modplatform/flame/FlamePackExportTask.cpp @@ -28,6 +28,7 @@ #include <algorithm> #include <iterator> #include <memory> +#include "Application.h" #include "Json.h" #include "MMCZip.h" #include "minecraft/PackProfile.h" @@ -102,7 +103,8 @@ void FlamePackExportTask::collectHashes() setStatus(tr("Finding file hashes...")); setProgress(1, 5); auto allMods = mcInstance->loaderModList()->allMods(); - ConcurrentTask::Ptr hashingTask(new ConcurrentTask(this, "MakeHashesTask", 10)); + ConcurrentTask::Ptr hashingTask( + new ConcurrentTask(this, "MakeHashesTask", APPLICATION->settings()->get("NumberOfConcurrentTasks").toInt())); task.reset(hashingTask); for (const QFileInfo& file : files) { const QString relative = gameRoot.relativeFilePath(file.absoluteFilePath()); |