mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 00:55:45 -04:00
Cheevos: Support logging in while disabled
This commit is contained in:
@ -53,6 +53,7 @@ void AchievementSettingsWidget::updateEnableState()
|
||||
const bool enabled = m_host_interface->GetBoolSettingValue("Cheevos", "Enabled", false);
|
||||
m_ui.testMode->setEnabled(enabled);
|
||||
m_ui.useFirstDiscFromPlaylist->setEnabled(enabled);
|
||||
m_ui.richPresence->setEnabled(enabled);
|
||||
}
|
||||
|
||||
void AchievementSettingsWidget::updateLoginState()
|
||||
@ -80,7 +81,7 @@ void AchievementSettingsWidget::updateLoginState()
|
||||
|
||||
void AchievementSettingsWidget::onLoginLogoutPressed()
|
||||
{
|
||||
if (Cheevos::IsLoggedIn())
|
||||
if (!m_host_interface->GetStringSettingValue("Cheevos", "Username").empty())
|
||||
{
|
||||
m_host_interface->executeOnEmulationThread([]() { Cheevos::Logout(); }, true);
|
||||
updateLoginState();
|
||||
|
Reference in New Issue
Block a user