[plasma/discover] discover: Add name to kcfg file

Nicolas Fella <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7915d6a9d5419f1b78db7ff540945d41ac410b71 by Nicolas Fella.
Committed on 27/07/2026 at 09:31.
Pushed by nicolasfella into branch 'master'.

Add name to kcfg file

So that it can be associated with the config file

M  +1    -1    discover/DiscoverObject.cpp
M  +1    -1    discover/discoversettings.kcfg
M  +1    -1    discover/plasmauserfeedback.kcfg

https://invent.kde.org/plasma/discover/-/commit/7915d6a9d5419f1b78db7ff540945d41ac410b71

diff --git a/discover/DiscoverObject.cpp b/discover/DiscoverObject.cpp
index 3b75f7fb4..998670633 100644
--- a/discover/DiscoverObject.cpp
+++ b/discover/DiscoverObject.cpp
@@ -125,7 +125,7 @@ DiscoverObject::DiscoverObject(const QVariantMap &initialProperties)
     qmlRegisterType<PowerManagementInterface>(uriApp, 1, 0, "PowerManagementInterface");
 #ifdef WITH_FEEDBACK
     qmlRegisterSingletonType<PlasmaUserFeedback>(uriApp, 1, 0, "UserFeedbackSettings", [](QQmlEngine *engine, QJSEngine *) -> QObject * {
-        auto r = new PlasmaUserFeedback(KSharedConfig::openConfig(QStringLiteral("PlasmaUserFeedback"), KConfig::NoGlobals));
+        auto r = new PlasmaUserFeedback;
         r->setParent(engine);
         return r;
     });
diff --git a/discover/discoversettings.kcfg b/discover/discoversettings.kcfg
index 96c640a20..6e76fc7ae 100644
--- a/discover/discoversettings.kcfg
+++ b/discover/discoversettings.kcfg
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
-  <kcfgfile arg="true"/>
+  <kcfgfile name="discoverrc" />
   <group name="DiscoverUI">
     <entry name="appsListPageSorting" type="Int"><default>ResourcesProxyModel::RatingCountRole</default></entry>
     <entry name="installedPageSorting" type="Int"><default>ResourcesProxyModel::NameRole</default></entry>
diff --git a/discover/plasmauserfeedback.kcfg b/discover/plasmauserfeedback.kcfg
index f44e53819..0876e157b 100644
--- a/discover/plasmauserfeedback.kcfg
+++ b/discover/plasmauserfeedback.kcfg
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
-  <kcfgfile arg="true"/>
+  <kcfgfile name="PlasmaUserFeedback"/>
   <group name="Global">
     <entry name="FeedbackLevel" type="Int"><default>int(KUserFeedback::Provider::NoTelemetry)</default></entry>
   </group>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.