| 1210 | } |
| 1211 | |
| 1212 | void 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 | |
| 1228 | std::shared_ptr<TranslationsModel> Application::translations() |
| 1229 | { |