diff options
author | flow <flowlnlnln@gmail.com> | 2022-08-28 15:51:14 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-08-28 16:29:02 -0300 |
commit | 064ae49d2b227bbc64c687e2d05fc0554ada6a31 (patch) | |
tree | 5a3167d3ea01a217c23b7bade3093882ba5f6d23 /launcher | |
parent | 247f99ce2f981adad48974abf95ef5e10b832503 (diff) | |
download | PrismLauncher-064ae49d2b227bbc64c687e2d05fc0554ada6a31.tar.gz PrismLauncher-064ae49d2b227bbc64c687e2d05fc0554ada6a31.tar.bz2 PrismLauncher-064ae49d2b227bbc64c687e2d05fc0554ada6a31.zip |
fix: make MultipleOptionsTask inherit directly from SequentialTask
It's not a good idea to have multiple concurrent tasks running on a
sequential thing like this one.
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/tasks/MultipleOptionsTask.cpp | 2 | ||||
-rw-r--r-- | launcher/tasks/MultipleOptionsTask.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/launcher/tasks/MultipleOptionsTask.cpp b/launcher/tasks/MultipleOptionsTask.cpp index 7741bef0..5ad6181f 100644 --- a/launcher/tasks/MultipleOptionsTask.cpp +++ b/launcher/tasks/MultipleOptionsTask.cpp @@ -2,7 +2,7 @@ #include <QDebug> -MultipleOptionsTask::MultipleOptionsTask(QObject* parent, const QString& task_name) : ConcurrentTask(parent, task_name) {} +MultipleOptionsTask::MultipleOptionsTask(QObject* parent, const QString& task_name) : SequentialTask(parent, task_name) {} void MultipleOptionsTask::startNext() { diff --git a/launcher/tasks/MultipleOptionsTask.h b/launcher/tasks/MultipleOptionsTask.h index c65356b0..db7d4d9a 100644 --- a/launcher/tasks/MultipleOptionsTask.h +++ b/launcher/tasks/MultipleOptionsTask.h @@ -1,11 +1,11 @@ #pragma once -#include "ConcurrentTask.h" +#include "SequentialTask.h" /* This task type will attempt to do run each of it's subtasks in sequence, * until one of them succeeds. When that happens, the remaining tasks will not run. * */ -class MultipleOptionsTask : public ConcurrentTask { +class MultipleOptionsTask : public SequentialTask { Q_OBJECT public: explicit MultipleOptionsTask(QObject* parent = nullptr, const QString& task_name = ""); |