From e5b7517d2fe89c3c59d4bc47f2f22c4ac4a0f4e1 Mon Sep 17 00:00:00 2001 From: arthomnix Date: Thu, 1 Dec 2022 20:50:36 +0000 Subject: [PATCH] GH-4978 Remove testing code --- launcher/LaunchController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher/LaunchController.cpp b/launcher/LaunchController.cpp index 47faf9e0..3852b5fe 100644 --- a/launcher/LaunchController.cpp +++ b/launcher/LaunchController.cpp @@ -121,8 +121,7 @@ void LaunchController::login() { m_session->wants_online = m_online; m_accountToUse->fillSession(m_session); - //switch(m_accountToUse->accountState()) { - switch (AccountState::Expired) { + switch(m_accountToUse->accountState()) { case AccountState::Offline: { m_session->wants_online = false; // NOTE: fallthrough is intentional @@ -268,7 +267,8 @@ void LaunchController::login() { if (isDefault) { accounts->setDefaultAccount(newAccount); } - m_accountToUse = newAccount; + decideAccount(); + continue; } else { emitFailed(tr("Account expired and re-login attempt failed")); return;