From 47bdcb6050cc5eb106929f27115c9dd13f93d154 Mon Sep 17 00:00:00 2001 From: flow Date: Fri, 1 Jul 2022 16:17:05 -0300 Subject: [PATCH] feat: make second metadata pass concurrent Signed-off-by: flow --- launcher/ui/dialogs/ModUpdateDialog.cpp | 4 +++- launcher/ui/dialogs/ModUpdateDialog.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/launcher/ui/dialogs/ModUpdateDialog.cpp b/launcher/ui/dialogs/ModUpdateDialog.cpp index c280c8da..c54d178b 100644 --- a/launcher/ui/dialogs/ModUpdateDialog.cpp +++ b/launcher/ui/dialogs/ModUpdateDialog.cpp @@ -8,6 +8,8 @@ #include "FileSystem.h" #include "Json.h" +#include "tasks/ConcurrentTask.h" + #include "minecraft/MinecraftInstance.h" #include "minecraft/PackProfile.h" @@ -39,7 +41,7 @@ ModUpdateDialog::ModUpdateDialog(QWidget* parent, , m_parent(parent) , m_mod_model(mods) , m_candidates(search_for) - , m_second_try_metadata(new SequentialTask()) + , m_second_try_metadata(new ConcurrentTask()) , m_instance(instance) { ReviewMessageBox::setGeometry(0, 0, 800, 600); diff --git a/launcher/ui/dialogs/ModUpdateDialog.h b/launcher/ui/dialogs/ModUpdateDialog.h index b598447d..638f64bc 100644 --- a/launcher/ui/dialogs/ModUpdateDialog.h +++ b/launcher/ui/dialogs/ModUpdateDialog.h @@ -11,6 +11,7 @@ class Mod; class ModrinthCheckUpdate; class FlameCheckUpdate; +class ConcurrentTask; class ModUpdateDialog final : public ReviewMessageBox { Q_OBJECT @@ -49,7 +50,7 @@ class ModUpdateDialog final : public ReviewMessageBox { std::list m_modrinth_to_update; std::list m_flame_to_update; - SequentialTask* m_second_try_metadata; + ConcurrentTask* m_second_try_metadata; std::list> m_failed_metadata; std::list> m_failed_check_update;