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"
wilder-5.26
Andrey Alekseev 4 years ago committed by Nate Graham
parent 6ec7a9f0a2
commit bb3a1cd5b0
  1. 2
      shell/shellcorona.cpp

@ -550,6 +550,8 @@ QByteArray ShellCorona::dumpCurrentLayoutJS() const
QJsonObject appletJson;
appletConfig = KConfigGroup(&appletConfig, QStringLiteral("Configuration"));
appletJson.insert("plugin", pluginName);
appletJson.insert("config", dumpconfigGroupJS(appletConfig));

Loading…
Cancel
Save