diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 27815720..4483f90d 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;