Skip to content

Commit

Permalink
NOISSUE disable analytics until further notice
Browse files Browse the repository at this point in the history
Or MultiMC 6.
  • Loading branch information
peterix committed Sep 2, 2023
1 parent f458204 commit da4973d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions launcher/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
}

// Initialize analytics
/*
[this]()
{
const int analyticsVersion = 2;
Expand Down Expand Up @@ -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())
{
Expand Down Expand Up @@ -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;
Expand Down

1 comment on commit da4973d

@Lamby777
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Please sign in to comment.