Skip to content
Permalink
Browse files
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.
@@ -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)

0 comments on commit 7cab8b7

Please sign in to comment.