mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Improve Achievements Window message
Special message on the Achievements window if the token is invalid/expired.
This commit is contained in:
parent
1ad0a771d9
commit
dd941bed70
@ -1032,6 +1032,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.update_event.Trigger(UpdatedItems{.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…
Reference in New Issue
Block a user