Commit c9820835 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

store survey interval config, too

parent 93dacf77
......@@ -97,7 +97,9 @@ KateApp::KateApp(const QCommandLineParser &args)
/**
* default is no feedback!
*/
m_userFeedbackProvider.setTelemetryMode(KUserFeedback::Provider::TelemetryMode(KSharedConfig::openConfig()->group("General").readEntry("TelemetryMode", int(KUserFeedback::Provider::NoTelemetry))));
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
}
......
......@@ -408,7 +408,9 @@ void KateConfigDialog::slotApply()
#ifdef WITH_KUSERFEEDBACK
// 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