Commit b06fc87d 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"

(cherry picked from commit bb3a1cd5)
parent ea578822
Pipeline #206596 passed with stage
in 8 minutes and 14 seconds
......@@ -534,6 +534,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