diff --git a/Source/Core/Core/DolphinAnalytics.cpp b/Source/Core/Core/DolphinAnalytics.cpp index c84565ec52..5aa7936038 100644 --- a/Source/Core/Core/DolphinAnalytics.cpp +++ b/Source/Core/Core/DolphinAnalytics.cpp @@ -57,10 +57,19 @@ void DolphinAnalytics::AndroidSetGetValFunc(std::function new_backend; - if (Config::Get(Config::MAIN_ANALYTICS_ENABLED)) + if (m_last_analytics_enabled) { new_backend = std::make_unique(ANALYTICS_ENDPOINT); } diff --git a/Source/Core/Core/DolphinAnalytics.h b/Source/Core/Core/DolphinAnalytics.h index b4ff4877df..595736e821 100644 --- a/Source/Core/Core/DolphinAnalytics.h +++ b/Source/Core/Core/DolphinAnalytics.h @@ -203,4 +203,5 @@ private: std::mutex m_reporter_mutex; Common::AnalyticsReporter m_reporter; Config::ConfigChangedCallbackID m_config_changed_callback_id{}; + bool m_last_analytics_enabled = false; };