Commit 926a36fb authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

userfeedback: properly tell if saving is necessary

parent 35dcbd3d
......@@ -56,7 +56,8 @@ Feedback::Feedback(QObject *parent, const QVariantList &args)
QStringLiteral("1.0"), i18n("Configure user feedback settings"), KAboutLicense::LGPL));
connect(this, &Feedback::plasmaFeedbackLevelChanged, this, [this](){
setNeedsSave(true);
auto current = m_plasmaConfig->group("Global").readEntry("FeedbackLevel", int(KUserFeedback::Provider::NoTelemetry));
setNeedsSave(current != m_plasmaFeedbackLevel);
});
QVector<QProcess*> processes;
......
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