mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Merge pull request #12942 from nivomi/master
RetroAchievements: Add instructive text to disabled login button
This commit is contained in:
commit
4ff5ff2772
@ -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