fix(ModrinthCheckUpdate): always increment loader index

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit e7382fd43d)
This commit is contained in:
Octol1ttle 2026-02-01 02:02:16 +05:00 committed by DioEgizio
parent 9f103c1f36
commit bc092d688f

View file

@ -83,6 +83,8 @@ void ModrinthCheckUpdate::executeTask()
void ModrinthCheckUpdate::getUpdateModsForLoader(std::optional<ModPlatform::ModLoaderTypes> loader, bool forceModLoaderCheck)
{
m_loaderIdx++;
setStatus(tr("Waiting for the API response from Modrinth..."));
setProgress(m_progress + 1, m_progressTotal);
@ -110,7 +112,6 @@ void ModrinthCheckUpdate::getUpdateModsForLoader(std::optional<ModPlatform::ModL
connect(job.get(), &Task::failed, this, &ModrinthCheckUpdate::checkNextLoader);
m_job = job;
m_loaderIdx++;
job->start();
}