mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 21:06:58 +03:00
[Backport release-10.x] Set current auth step description in correct method (#4742)
This commit is contained in:
commit
6486c3d1a8
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue