summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2017-02-06 12:11:50 (GMT)
committerDavid Edmundson <kde@davidedmundson.co.uk>2017-02-06 12:12:03 (GMT)
commit19e83b28161783d570bde2ced692a8b5f2236693 (patch)
tree4b895f749ef2169a2651be2637565145b66a9928
parent6699084007d1cae59d126e40e3bd90c60e8cd0e5 (diff)
Set wallpaper type in SDDM config
Summary: aafa20f19c87 introduces a feature to the SDDM breeze theme where it will only show a wallpaper is a config value "type" is set to image. This isn't the default, making this KCM useless. This patch sets the wallpaper type when saving. BUG: 370521 FIXED-IN: 5.9.1 Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4457
-rw-r--r--src/themeconfig.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/themeconfig.cpp b/src/themeconfig.cpp
index 2a7c8d2..682818c 100644
--- a/src/themeconfig.cpp
+++ b/src/themeconfig.cpp
@@ -85,8 +85,10 @@ QVariantMap ThemeConfig::save()
if (!mThemeConfigPath.isEmpty()) {
args["theme.conf.user/General/background"] = mBackgroundPath;
+ args["theme.conf.user/General/type"] = QStringLiteral("image");
+ } else {
+ args["theme.conf.user/General/type"] = QStringLiteral("color");
}
-
return args;
}