mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-01-15 19:51:31 +00:00
NOISSUE disable analytics until further notice
Or MultiMC 6.
This commit is contained in:
parent
f458204a52
commit
da4973dc94
@ -973,6 +973,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Initialize analytics
|
// Initialize analytics
|
||||||
|
/*
|
||||||
[this]()
|
[this]()
|
||||||
{
|
{
|
||||||
const int analyticsVersion = 2;
|
const int analyticsVersion = 2;
|
||||||
@ -1011,6 +1012,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
m_analytics->enable();
|
m_analytics->enable();
|
||||||
qDebug() << "<> Initialized analytics with tid" << BuildConfig.ANALYTICS_ID;
|
qDebug() << "<> Initialized analytics with tid" << BuildConfig.ANALYTICS_ID;
|
||||||
}();
|
}();
|
||||||
|
*/
|
||||||
|
|
||||||
if(createSetupWizard())
|
if(createSetupWizard())
|
||||||
{
|
{
|
||||||
@ -1040,16 +1042,16 @@ bool Application::createSetupWizard()
|
|||||||
}();
|
}();
|
||||||
bool analyticsRequired = [&]()
|
bool analyticsRequired = [&]()
|
||||||
{
|
{
|
||||||
if(BuildConfig.ANALYTICS_ID.isEmpty())
|
if(!m_analytics) {
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!settings()->get("Analytics").toBool())
|
if(BuildConfig.ANALYTICS_ID.isEmpty()) {
|
||||||
{
|
|
||||||
return false;
|
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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user