mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Merge pull request #12759 from LillyJadeKatrin/retroachievements-header-fix
Hide Achievement Dialog Header When Disabled
This commit is contained in:
commit
f709071d41
@ -59,11 +59,12 @@ void AchievementHeaderWidget::UpdateData()
|
||||
{
|
||||
std::lock_guard lg{AchievementManager::GetInstance().GetLock()};
|
||||
auto& instance = AchievementManager::GetInstance();
|
||||
if (!instance.HasAPIToken())
|
||||
if (!Config::Get(Config::RA_ENABLED) || !instance.HasAPIToken())
|
||||
{
|
||||
m_header_box->setVisible(false);
|
||||
return;
|
||||
}
|
||||
m_header_box->setVisible(true);
|
||||
|
||||
QString user_name = QtUtils::FromStdString(instance.GetPlayerDisplayName());
|
||||
QString game_name = QtUtils::FromStdString(instance.GetGameDisplayName());
|
||||
|
Loading…
x
Reference in New Issue
Block a user