diff options
Diffstat (limited to 'launcher/ui/dialogs/ModUpdateDialog.h')
-rw-r--r-- | launcher/ui/dialogs/ModUpdateDialog.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/ui/dialogs/ModUpdateDialog.h b/launcher/ui/dialogs/ModUpdateDialog.h index 30cd5cbd..f40fc594 100644 --- a/launcher/ui/dialogs/ModUpdateDialog.h +++ b/launcher/ui/dialogs/ModUpdateDialog.h @@ -17,7 +17,7 @@ class ModUpdateDialog final : public ReviewMessageBox { public: explicit ModUpdateDialog(QWidget* parent, BaseInstance* instance, - const std::shared_ptr<ModFolderModel>& mod_model, + const std::shared_ptr<ModFolderModel> mod_model, std::list<Mod>& search_for); void checkCandidates(); @@ -35,21 +35,21 @@ class ModUpdateDialog final : public ReviewMessageBox { private slots: void onMetadataEnsured(Mod&); - void onMetadataFailed(Mod&); + void onMetadataFailed(Mod&, bool try_others = false, ModPlatform::Provider first_choice = ModPlatform::Provider::MODRINTH); private: QWidget* m_parent; - SequentialTask m_check_task; ModrinthCheckUpdate* m_modrinth_check_task = nullptr; FlameCheckUpdate* m_flame_check_task = nullptr; - const std::shared_ptr<ModFolderModel>& m_mod_model; + const std::shared_ptr<ModFolderModel> m_mod_model; std::list<Mod>& m_candidates; std::list<Mod> m_modrinth_to_update; std::list<Mod> m_flame_to_update; + SequentialTask* m_second_try_metadata; std::list<Mod> m_failed_metadata; std::list<std::tuple<Mod, QString, QUrl>> m_failed_check_update; |