From da4973dc94e482896595e5d993ca4a9c9f1d76fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 3 Sep 2023 00:33:24 +0200 Subject: [PATCH] NOISSUE disable analytics until further notice Or MultiMC 6. --- launcher/Application.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 278157202..4483f90d2 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -973,6 +973,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) } // Initialize analytics + /* [this]() { const int analyticsVersion = 2; @@ -1011,6 +1012,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) m_analytics->enable(); qDebug() << "<> Initialized analytics with tid" << BuildConfig.ANALYTICS_ID; }(); + */ if(createSetupWizard()) { @@ -1040,16 +1042,16 @@ bool Application::createSetupWizard() }(); bool analyticsRequired = [&]() { - if(BuildConfig.ANALYTICS_ID.isEmpty()) - { + if(!m_analytics) { return false; } - if (!settings()->get("Analytics").toBool()) - { + if(BuildConfig.ANALYTICS_ID.isEmpty()) { return false; } - if (settings()->get("AnalyticsSeen").toInt() < analytics()->version()) - { + if (!settings()->get("Analytics").toBool()) { + return false; + } + if (settings()->get("AnalyticsSeen").toInt() < analytics()->version()) { return true; } return false;