aboutsummaryrefslogtreecommitdiff
path: root/launcher/tasks/ConcurrentTask.h
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-07-24 17:16:14 -0300
committerflow <flowlnlnln@gmail.com>2022-08-28 16:29:01 -0300
commitbdf464e792f4b0c8a20f92a9073699c5fd98cd46 (patch)
tree8de03b48b08b8b3e9e3a213a8046a4e6ebeee910 /launcher/tasks/ConcurrentTask.h
parentc410bb4ecbc553fa6016a4c4e58026343deeec33 (diff)
downloadPrismLauncher-bdf464e792f4b0c8a20f92a9073699c5fd98cd46.tar.gz
PrismLauncher-bdf464e792f4b0c8a20f92a9073699c5fd98cd46.tar.bz2
PrismLauncher-bdf464e792f4b0c8a20f92a9073699c5fd98cd46.zip
fix: abort logic running subsequent tasks anyways some times
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/tasks/ConcurrentTask.h')
-rw-r--r--launcher/tasks/ConcurrentTask.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/tasks/ConcurrentTask.h b/launcher/tasks/ConcurrentTask.h
index 5898899d..f1279d32 100644
--- a/launcher/tasks/ConcurrentTask.h
+++ b/launcher/tasks/ConcurrentTask.h
@@ -9,7 +9,9 @@ class ConcurrentTask : public Task {
Q_OBJECT
public:
explicit ConcurrentTask(QObject* parent = nullptr, QString task_name = "", int max_concurrent = 6);
- virtual ~ConcurrentTask();
+ ~ConcurrentTask() override;
+
+ bool canAbort() const override { return true; }
inline auto isMultiStep() const -> bool override { return m_queue.size() > 1; };
auto getStepProgress() const -> qint64 override;