Show clearer warning if the requested KCM could not be found
In particular, make it clear that we only support QML KCMs.
This commit is contained in:
parent
8a4576a751
commit
1ead97e8c9
@ -164,11 +164,13 @@ void ConfigViewPrivate::init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const QString &kcm : qAsConst(kcms)) {
|
for (const QString &kcm : qAsConst(kcms)) {
|
||||||
|
// Only look for KCMs in the "kcms_" folder where new QML KCMs live
|
||||||
|
// because we don't support loading QWidgets KCMs
|
||||||
KPluginLoader loader(KPluginLoader::findPlugin(QLatin1String("kcms/") + kcm));
|
KPluginLoader loader(KPluginLoader::findPlugin(QLatin1String("kcms/") + kcm));
|
||||||
KPluginMetaData md(loader.fileName());
|
KPluginMetaData md(loader.fileName());
|
||||||
|
|
||||||
if (!md.isValid()) {
|
if (!md.isValid()) {
|
||||||
qWarning() << "Could not find" << kcm << "specified in X-Plasma-ConfigPlugins";
|
qWarning() << "Could not find" << kcm << "requested by X-Plasma-ConfigPlugins. Ensure that it exists, is a QML KCM, and lives in the 'kcms/' subdirectory.";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user