Merge pull request #12942 from nivomi/master

RetroAchievements: Add instructive text to disabled login button
This commit is contained in:
Admiral H. Curtiss 2024-08-19 11:05:03 +02:00 committed by GitHub
commit 4ff5ff2772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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);