mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 16:16:05 +00:00
Improve Achievements Window message
Special message on the Achievements window if the token is invalid/expired.
This commit is contained in:
parent
3d9321e693
commit
94215bd9bf
2 changed files with 5 additions and 0 deletions
|
@ -1006,6 +1006,7 @@ void AchievementManager::LoadGameCallback(int result, const char* error_message,
|
|||
OSD::AddMessage("Please close the game to log back in before continuing.",
|
||||
OSD::Duration::VERY_LONG, OSD::Color::RED);
|
||||
Config::SetBaseOrCurrent(Config::RA_API_TOKEN, "");
|
||||
instance.m_update_callback({.failed_login_code = result});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,10 @@ void AchievementSettingsWidget::UpdateData(int login_failed_code)
|
|||
{
|
||||
switch (login_failed_code)
|
||||
{
|
||||
case RC_LOGIN_REQUIRED:
|
||||
case RC_EXPIRED_TOKEN:
|
||||
m_common_login_failed->setText(tr("Logged Out - Credentials Expired"));
|
||||
break;
|
||||
case RC_INVALID_CREDENTIALS:
|
||||
m_common_login_failed->setText(tr("Login Failed - Invalid Username/Password"));
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue