From bb3a1cd5b0f17bb783ffe199125b3b77da5a842b Mon Sep 17 00:00:00 2001 From: Andrey Alekseev Date: Mon, 18 Jul 2022 15:32:22 +0000 Subject: [PATCH] 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" --- shell/shellcorona.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp index 7e6cf2cf7..f9501c492 100644 --- a/shell/shellcorona.cpp +++ b/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));