aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform
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/ui/pages/modplatform
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/ui/pages/modplatform')
-rw-r--r--launcher/ui/pages/modplatform/ResourceModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/ResourceModel.cpp b/launcher/ui/pages/modplatform/ResourceModel.cpp
index e0b66352..9f95d046 100644
--- a/launcher/ui/pages/modplatform/ResourceModel.cpp
+++ b/launcher/ui/pages/modplatform/ResourceModel.cpp
@@ -31,7 +31,9 @@ QHash<ResourceModel*, bool> ResourceModel::s_running_models;
ResourceModel::ResourceModel(ResourceAPI* api) : QAbstractListModel(), m_api(api)
{
s_running_models.insert(this, true);
+#ifndef LAUNCHER_TEST
m_current_info_job.setMaxConcurrent(APPLICATION->settings()->get("NumberOfConcurrentDownloads").toInt());
+#endif
}
ResourceModel::~ResourceModel()