Set current auth step description in correct method (#4733)

This commit is contained in:
Alexandru Ionut Tripon
2026-01-12 00:22:01 +02:00
committed by GitHub

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;
}
}