diff options
author | flow <flowlnlnln@gmail.com> | 2022-06-02 19:34:08 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-07-17 11:33:41 -0300 |
commit | 9a44c9221139428fa4e3bdf560f6bfdc6fcbe75d (patch) | |
tree | 08713b50e73a3facf164aca8ada358773a8dec1c /launcher/CMakeLists.txt | |
parent | dd6aabf9ab2c974816aef4e889e059fa0cdad53b (diff) | |
download | PrismLauncher-9a44c9221139428fa4e3bdf560f6bfdc6fcbe75d.tar.gz PrismLauncher-9a44c9221139428fa4e3bdf560f6bfdc6fcbe75d.tar.bz2 PrismLauncher-9a44c9221139428fa4e3bdf560f6bfdc6fcbe75d.zip |
feat: add MultipleOptionsTask
This is a variation of a Sequential Task, in which a subtask failing
will prompt the next one to execute, and a subtask being successful will
stop the task.
This way, this can be used for easily managing fallbacks with tasks. :D
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/CMakeLists.txt')
-rw-r--r-- | launcher/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index 7b8dd9c5..3be161be 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -397,6 +397,8 @@ set(TASKS_SOURCES tasks/ConcurrentTask.cpp tasks/SequentialTask.h tasks/SequentialTask.cpp + tasks/MultipleOptionsTask.h + tasks/MultipleOptionsTask.cpp ) ecm_add_test(tasks/Task_test.cpp LINK_LIBRARIES Launcher_logic Qt${QT_VERSION_MAJOR}::Test |