mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix(AuthFlow): set current step description in correct method
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
c64d871a28
commit
f0813b578e
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