MCPcopy Create free account
hub / github.com/MultiMC/Launcher / analyticsSettingChanged

Method analyticsSettingChanged

launcher/Application.cpp:1212–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210}
1211
1212void Application::analyticsSettingChanged(const Setting&, QVariant value)
1213{
1214 if(!m_analytics)
1215 return;
1216 bool enabled = value.toBool();
1217 if(enabled)
1218 {
1219 qDebug() << "Analytics enabled by user.";
1220 }
1221 else
1222 {
1223 qDebug() << "Analytics disabled by user.";
1224 }
1225 m_analytics->enable(enabled);
1226}
1227
1228std::shared_ptr<TranslationsModel> Application::translations()
1229{

Callers

nothing calls this directly

Calls 1

enableMethod · 0.45

Tested by

no test coverage detected