mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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>
This commit is contained in:
parent
46454f9b4e
commit
db9b3592e1
@ -178,6 +178,15 @@ void AchievementSettingsWidget::LoadSettings()
|
|||||||
SignalBlocking(m_common_login_button)->setVisible(logged_out);
|
SignalBlocking(m_common_login_button)->setVisible(logged_out);
|
||||||
SignalBlocking(m_common_login_button)
|
SignalBlocking(m_common_login_button)
|
||||||
->setEnabled(enabled && !Core::IsRunning(Core::System::GetInstance()));
|
->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)->setVisible(!logged_out);
|
||||||
SignalBlocking(m_common_logout_button)->setEnabled(enabled);
|
SignalBlocking(m_common_logout_button)->setEnabled(enabled);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user