Commit bb3a1cd5 authored by Andrey Alekseev's avatar Andrey Alekseev 🚂 Committed by Nate Graham
Browse files

Don't break configuration when saving layouts

Plasma::Applet::config() returns a "/Configuration" group, but the
dumpCurrentLayoutJS DBus method saves all applets' config from root,
so when we need to save some value through scripting api it will
always prepend "/Configuration"
parent 6ec7a9f0
Pipeline #206561 passed with stage
in 9 minutes
......@@ -550,6 +550,8 @@ QByteArray ShellCorona::dumpCurrentLayoutJS() const
QJsonObject appletJson;
appletConfig = KConfigGroup(&appletConfig, QStringLiteral("Configuration"));
appletJson.insert("plugin", pluginName);
appletJson.insert("config", dumpconfigGroupJS(appletConfig));
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