LaunchController: minor fixes (#5129)

This commit is contained in:
Alexandru Ionut Tripon 2026-03-13 17:53:59 +00:00 committed by GitHub
commit a1e3a28666
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,6 +189,8 @@ LaunchDecision LaunchController::decideLaunchMode()
QString reauthReason;
switch (state) {
case AccountState::Errored:
reauthReason = tr("An error occurred while refreshing '%1'").arg(accountToCheck->profileName());
break;
case AccountState::Expired:
reauthReason = tr("'%1' has expired and needs to be reauthenticated").arg(accountToCheck->profileName());
break;
@ -356,7 +358,7 @@ bool LaunchController::reauthenticateAccount(MinecraftAccountPtr account, QStrin
}
}
emitFailed(tr("The account has expired and needs to be reauthenticated"));
emitFailed(reason);
return false;
}