aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-14 23:22:11 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-14 23:22:11 +0300
commit149b6d59cf848a3b3cd50b3aee1c112e9c47e633 (patch)
tree34990a047d45757da00180f0aaa5997b7f8035e2 /launcher/minecraft
parentdb9f5f44e08dae27578f0d74e5092f47e40a1216 (diff)
downloadPrismLauncher-149b6d59cf848a3b3cd50b3aee1c112e9c47e633.tar.gz
PrismLauncher-149b6d59cf848a3b3cd50b3aee1c112e9c47e633.tar.bz2
PrismLauncher-149b6d59cf848a3b3cd50b3aee1c112e9c47e633.zip
fixed tests
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/minecraft')
-rw-r--r--launcher/minecraft/mod/ResourceFolderModel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/ResourceFolderModel.cpp b/launcher/minecraft/mod/ResourceFolderModel.cpp
index e2aa957b..7c2dc439 100644
--- a/launcher/minecraft/mod/ResourceFolderModel.cpp
+++ b/launcher/minecraft/mod/ResourceFolderModel.cpp
@@ -33,7 +33,10 @@ ResourceFolderModel::ResourceFolderModel(QDir dir, BaseInstance* instance, QObje
connect(&m_watcher, &QFileSystemWatcher::directoryChanged, this, &ResourceFolderModel::directoryChanged);
connect(&m_helper_thread_task, &ConcurrentTask::finished, this, [this] { m_helper_thread_task.clear(); });
+#ifndef LAUNCHER_TEST
+ // in tests the application macro doesn't work
m_helper_thread_task.setMaxConcurrent(APPLICATION->settings()->get("NumberOfConcurrentTasks").toInt());
+#endif
}
ResourceFolderModel::~ResourceFolderModel()