Commit 4eac5212 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

let KUserFeedback manage the settings itself

parent c9820835
......@@ -93,13 +93,6 @@ KateApp::KateApp(const QCommandLineParser &args)
m_userFeedbackProvider.addDataSource(new KUserFeedback::PlatformInfoSource);
m_userFeedbackProvider.addDataSource(new KUserFeedback::ScreenInfoSource);
m_userFeedbackProvider.addDataSource(new KUserFeedback::QtVersionSource);
/**
* default is no feedback!
*/
KConfigGroup cg(KSharedConfig::openConfig(), "General");
m_userFeedbackProvider.setTelemetryMode(KUserFeedback::Provider::TelemetryMode(cg.readEntry("TelemetryMode", int(KUserFeedback::Provider::NoTelemetry))));
m_userFeedbackProvider.setSurveyInterval(cg.readEntry("SurveyInterval", -1));
#endif
}
......
......@@ -409,8 +409,6 @@ void KateConfigDialog::slotApply()
// set current active mode + write back the config for future starts
KateApp::self()->userFeedbackProvider().setTelemetryMode(m_userFeedbackWidget->telemetryMode());
KateApp::self()->userFeedbackProvider().setSurveyInterval(m_userFeedbackWidget->surveyInterval());
cg.writeEntry("TelemetryMode", int(m_userFeedbackWidget->telemetryMode()));
cg.writeEntry("SurveyInterval", m_userFeedbackWidget->surveyInterval());
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment