Commit b94b0e11 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Faces: Write preset faceproperties to the right location

When loading presets we expect the faceproperties file to be located in
"contents/config/" but when writing we are placing it in "contents/"
which means that custom presets are not loaded properly.

BUG: 450745


(cherry picked from commit 05866a59)
parent 88722b18
Pipeline #174663 passed with stage
in 2 minutes and 23 seconds
......@@ -938,8 +938,8 @@ void SensorFaceController::savePreset()
cg.sync();
QDir subDir(dir.path());
subDir.mkdir(QStringLiteral("contents"));
KConfig faceConfig(subDir.path() % QStringLiteral("/contents/faceproperties"));
subDir.mkpath(QStringLiteral("contents/config"));
KConfig faceConfig(subDir.path() % QStringLiteral("/contents/config/faceproperties"));
KConfigGroup configGroup(&faceConfig, "Config");
configGroup.writeEntry(QStringLiteral("totalSensors"), QJsonDocument(totalSensors()).toJson(QJsonDocument::Compact));
......
Supports Markdown
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