mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 17:09:25 +00:00
GH-4978 Remove testing code
This commit is contained in:
@@ -121,8 +121,7 @@ void LaunchController::login() {
|
|||||||
m_session->wants_online = m_online;
|
m_session->wants_online = m_online;
|
||||||
m_accountToUse->fillSession(m_session);
|
m_accountToUse->fillSession(m_session);
|
||||||
|
|
||||||
//switch(m_accountToUse->accountState()) {
|
switch(m_accountToUse->accountState()) {
|
||||||
switch (AccountState::Expired) {
|
|
||||||
case AccountState::Offline: {
|
case AccountState::Offline: {
|
||||||
m_session->wants_online = false;
|
m_session->wants_online = false;
|
||||||
// NOTE: fallthrough is intentional
|
// NOTE: fallthrough is intentional
|
||||||
@@ -268,7 +267,8 @@ void LaunchController::login() {
|
|||||||
if (isDefault) {
|
if (isDefault) {
|
||||||
accounts->setDefaultAccount(newAccount);
|
accounts->setDefaultAccount(newAccount);
|
||||||
}
|
}
|
||||||
m_accountToUse = newAccount;
|
decideAccount();
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
emitFailed(tr("Account expired and re-login attempt failed"));
|
emitFailed(tr("Account expired and re-login attempt failed"));
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user