Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9072 from AdmiralCurtiss/analytics-config-key-fix
Settings: Fix incorrect config key for enabled analytics.
  • Loading branch information
JosJuice committed Sep 9, 2020
2 parents a31c204 + c74ea66 commit 7cab8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DolphinQt/Settings.cpp
Expand Up @@ -515,14 +515,14 @@ void Settings::SetAnalyticsEnabled(bool enabled)
if (enabled == IsAnalyticsEnabled())
return;

Config::SetBase(Config::MAIN_ANALYTICS_PERMISSION_ASKED, enabled);
Config::SetBase(Config::MAIN_ANALYTICS_ENABLED, enabled);

emit AnalyticsToggled(enabled);
}

bool Settings::IsAnalyticsEnabled() const
{
return Config::Get(Config::MAIN_ANALYTICS_PERMISSION_ASKED);
return Config::Get(Config::MAIN_ANALYTICS_ENABLED);
}

void Settings::SetToolBarVisible(bool visible)
Expand Down

0 comments on commit 7cab8b7

Please sign in to comment.