NOISSUE disable analytics until further notice

Or MultiMC 6.
This commit is contained in:
Petr Mrázek 2023-09-03 00:33:24 +02:00
parent f458204a52
commit da4973dc94

View File

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