From f0813b578eed5b927c1bcd162efd520250853bc2 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sun, 11 Jan 2026 20:05:00 +0500 Subject: [PATCH] fix(AuthFlow): set current step description in correct method Signed-off-by: Octol1ttle --- launcher/minecraft/auth/AuthFlow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/launcher/minecraft/auth/AuthFlow.cpp b/launcher/minecraft/auth/AuthFlow.cpp index 287831b2f..ccdc7c0bf 100644 --- a/launcher/minecraft/auth/AuthFlow.cpp +++ b/launcher/minecraft/auth/AuthFlow.cpp @@ -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; -} \ No newline at end of file +}