NOISSUE fix some error mappings for Mojang accounts
This commit is contained in:
parent
d37003b1de
commit
c8ca6acc15
@ -175,6 +175,8 @@ void LaunchController::login() {
|
||||
}
|
||||
return;
|
||||
}
|
||||
case AccountState::Errored:
|
||||
// This means some sort of soft error that we can fix with a refresh ... so let's refresh.
|
||||
case AccountState::Unchecked: {
|
||||
m_accountToUse->refresh();
|
||||
// NOTE: fallthrough intentional
|
||||
@ -196,11 +198,6 @@ void LaunchController::login() {
|
||||
return;
|
||||
}
|
||||
*/
|
||||
case AccountState::Errored: {
|
||||
// This means some sort of soft error that we can fix with a refresh ... so let's refresh.
|
||||
// TODO: implement
|
||||
return;
|
||||
}
|
||||
case AccountState::Expired: {
|
||||
auto errorString = tr("The account has expired and needs to be logged into manually again.");
|
||||
QMessageBox::warning(
|
||||
|
@ -47,5 +47,5 @@ void YggdrasilStep::onAuthFailed() {
|
||||
state = AccountTaskState::STATE_OFFLINE;
|
||||
errorMessage = tr("Mojang user authentication ended with a network error.");
|
||||
}
|
||||
emit finished(AccountTaskState::STATE_OFFLINE, errorMessage);
|
||||
emit finished(state, errorMessage);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user