Settings: Fix incorrect config key for enabled analytics.

This commit is contained in:
Admiral H. Curtiss 2020-09-09 20:19:30 +02:00
parent a31c204ca8
commit c74ea6696e

View File

@ -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)