Commit 93f89648 authored by Marco Martin's avatar Marco Martin
Browse files

fix presets loading

presets changed from having the config inline in the desktop file
to be a separate config file in the preset package.
the presetmodel wasn't adapted to that, which broke the preset change ui
in the plasmoid
parent b57efc23
......@@ -105,7 +105,7 @@ void PresetsModel::reload()
// TODO config
QVariantMap config;
KConfigGroup configGroup(df.group("Config"));
KConfigGroup configGroup(KSharedConfig::openConfig(p.filePath("config", QStringLiteral("faceproperties"))), QStringLiteral("Config"));
const QStringList keys = configGroup.keyList();
for (const QString &key : keys) {
......@@ -453,7 +453,6 @@ void SensorFaceController::setFaceId(const QString &face)
d->contextObj->setTranslationDomain(QLatin1String("ksysguard_face_") + face);
//TODO: should be in a different config file rather than metadata
d->faceProperties = KConfigGroup(KSharedConfig::openConfig(d->facePackage.filePath("FaceProperties")), QStringLiteral("Config"));
const QString xmlPath = d->facePackage.filePath("mainconfigxml");
......
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