fix(AuthFlow): set current step description in correct method

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle
2026-01-11 20:05:00 +05:00
parent c64d871a28
commit f0813b578e

View File

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