aboutsummaryrefslogtreecommitdiff
path: root/launcher/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/tasks')
-rw-r--r--launcher/tasks/ConcurrentTask.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/tasks/ConcurrentTask.h b/launcher/tasks/ConcurrentTask.h
index 6325fc9e..7130ca3a 100644
--- a/launcher/tasks/ConcurrentTask.h
+++ b/launcher/tasks/ConcurrentTask.h
@@ -41,6 +41,7 @@
#include <QUuid>
#include <memory>
+#include "Application.h"
#include "tasks/Task.h"
class ConcurrentTask : public Task {
@@ -48,7 +49,9 @@ class ConcurrentTask : public Task {
public:
using Ptr = shared_qobject_ptr<ConcurrentTask>;
- explicit ConcurrentTask(QObject* parent = nullptr, QString task_name = "", int max_concurrent = 6);
+ explicit ConcurrentTask(QObject* parent = nullptr,
+ QString task_name = "",
+ int max_concurrent = APPLICATION->settings()->get("NumberOfConcurrentTasks").toInt());
~ConcurrentTask() override;
bool canAbort() const override { return true; }