[Backport release-10.x] Set current auth step description in correct method (#4742)

This commit is contained in:
Alexandru Ionut Tripon 2026-01-12 00:23:28 +02:00 committed by GitHub
commit 6486c3d1a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,6 +69,7 @@ void AuthFlow::nextStep()
}
m_currentStep = m_steps.front();
qDebug() << "AuthFlow:" << m_currentStep->describe();
setStatus(m_currentStep->describe());
m_steps.pop_front();
connect(m_currentStep.get(), &AuthStep::finished, this, &AuthFlow::stepFinished);
@ -92,7 +93,9 @@ bool AuthFlow::changeState(AccountTaskState newState, QString reason)
return true;
}
case AccountTaskState::STATE_WORKING: {
setStatus(m_currentStep ? m_currentStep->describe() : tr("Working..."));
if (!m_currentStep) {
setStatus(tr("Preparing to log in..."));
}
m_data->accountState = AccountState::Working;
return true;
}
@ -152,4 +155,4 @@ bool AuthFlow::abort()
if (m_currentStep)
m_currentStep->abort();
return true;
}
}