summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorNivekH <nivomi@terribleideas.org>2024-07-20 00:11:08 -0400
committerAdmiral H. Curtiss <pikachu025@gmail.com>2024-08-19 10:15:44 +0200
commitdb9b3592e1c21baffbc14c95ecf9272dfb2c71be (patch)
treed960690e22b6d28ad722069fd7017eb2ec06a814 /Source/Core
parent46454f9b4e1515a4cd4aa7f2f2d0a6b8a474f83c (diff)
Add instructive text to disabled RetroAchievements login button
Changes the RetroAchievements "Log In" button's text to "To log in, stop the current emulation." when the button is disabled because an emulation session is active. This allows a user to understand why the button is disabled, and how this state can be resolved. Previously, it could be unclear why this button was disabled without an understanding of the underlying system. Co-Authored-By: JosJuice <josjuice@gmail.com>
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp
index df8456318c..175d9b2f0e 100644
--- a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp
+++ b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp
@@ -178,6 +178,15 @@ void AchievementSettingsWidget::LoadSettings()
SignalBlocking(m_common_login_button)->setVisible(logged_out);
SignalBlocking(m_common_login_button)
->setEnabled(enabled && !Core::IsRunning(Core::System::GetInstance()));
+ if (enabled && Core::IsRunning(Core::System::GetInstance()))
+ {
+ SignalBlocking(m_common_login_button)->setText(tr("To log in, stop the current emulation."));
+ }
+ else
+ {
+ SignalBlocking(m_common_login_button)->setText(tr("Log In"));
+ }
+
SignalBlocking(m_common_logout_button)->setVisible(!logged_out);
SignalBlocking(m_common_logout_button)->setEnabled(enabled);