From 3576c2f101cfdefd3072867357694dca42507487 Mon Sep 17 00:00:00 2001 From: m0nstrum Date: Mon, 16 Feb 2026 23:22:16 +0300 Subject: [PATCH] fix(flame): gate modrinth fallback parsing on success Signed-off-by: m0nstrum --- launcher/modplatform/flame/FileResolvingTask.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/modplatform/flame/FileResolvingTask.cpp b/launcher/modplatform/flame/FileResolvingTask.cpp index 4849855c9..ae1599f22 100644 --- a/launcher/modplatform/flame/FileResolvingTask.cpp +++ b/launcher/modplatform/flame/FileResolvingTask.cpp @@ -157,7 +157,7 @@ void Flame::FileResolvingTask::netJobFinished() m_task = modrinthAPI.currentVersions(hashes, "sha1", m_result.get()); (dynamic_cast(m_task.get()))->setAskRetry(false); auto step_progress = std::make_shared(); - connect(m_task.get(), &Task::finished, this, [this, step_progress]() { + connect(m_task.get(), &Task::succeeded, this, [this, step_progress]() { step_progress->state = TaskStepState::Succeeded; stepProgress(*step_progress); QJsonParseError parse_error{}; @@ -203,6 +203,7 @@ void Flame::FileResolvingTask::netJobFinished() connect(m_task.get(), &Task::failed, this, [this, step_progress](QString reason) { step_progress->state = TaskStepState::Failed; stepProgress(*step_progress); + getFlameProjects(); }); connect(m_task.get(), &Task::stepProgress, this, &FileResolvingTask::propagateStepProgress); connect(m_task.get(), &Task::progress, this, [this, step_progress](qint64 current, qint64 total) {