diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-04-07 13:01:45 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-01 10:48:00 -0700 |
commit | d7032d975cb71bbf69d1dcd6a916db85ceb7619c (patch) | |
tree | b1165e670b6d0a79406d2480071ae470e7bdd66f /launcher/tasks/ConcurrentTask.h | |
parent | 96decbac27b364e0ffdcb20c40b08a79b827be00 (diff) | |
download | PrismLauncher-d7032d975cb71bbf69d1dcd6a916db85ceb7619c.tar.gz PrismLauncher-d7032d975cb71bbf69d1dcd6a916db85ceb7619c.tar.bz2 PrismLauncher-d7032d975cb71bbf69d1dcd6a916db85ceb7619c.zip |
fix: no need to loop all sub tasks
pathc by flowin
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/tasks/ConcurrentTask.h')
-rw-r--r-- | launcher/tasks/ConcurrentTask.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/tasks/ConcurrentTask.h b/launcher/tasks/ConcurrentTask.h index 974e8d4d..284fa345 100644 --- a/launcher/tasks/ConcurrentTask.h +++ b/launcher/tasks/ConcurrentTask.h @@ -83,7 +83,8 @@ protected: // NOTE: This is not thread-safe. [[nodiscard]] unsigned int totalSize() const { return m_queue.size() + m_doing.size() + m_done.size(); } - void updateStepProgress(); + enum class Operation { ADDED, REMOVED, CHANGED }; + void updateStepProgress(TaskStepProgress const& changed_progress, Operation); virtual void updateState(); |