Merge pull request #9072 from AdmiralCurtiss/analytics-config-key-fix

Settings: Fix incorrect config key for enabled analytics.
This commit is contained in:
JosJuice 2020-09-09 20:40:23 +02:00 committed by GitHub
commit 7cab8b733f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -515,14 +515,14 @@ void Settings::SetAnalyticsEnabled(bool enabled)
if (enabled == IsAnalyticsEnabled()) if (enabled == IsAnalyticsEnabled())
return; return;
Config::SetBase(Config::MAIN_ANALYTICS_PERMISSION_ASKED, enabled); Config::SetBase(Config::MAIN_ANALYTICS_ENABLED, enabled);
emit AnalyticsToggled(enabled); emit AnalyticsToggled(enabled);
} }
bool Settings::IsAnalyticsEnabled() const bool Settings::IsAnalyticsEnabled() const
{ {
return Config::Get(Config::MAIN_ANALYTICS_PERMISSION_ASKED); return Config::Get(Config::MAIN_ANALYTICS_ENABLED);
} }
void Settings::SetToolBarVisible(bool visible) void Settings::SetToolBarVisible(bool visible)