mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
LaunchController: minor fixes (#5129)
This commit is contained in:
commit
a1e3a28666
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue