1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
--- sddm-kcm-6.3.4.orig/src/sddmkcm.cpp
+++ sddm-kcm-6.3.4/src/sddmkcm.cpp
@@ -118,18 +118,6 @@ void SddmKcm::save()
const QModelIndex currentThemeIndex = m_themesModel->index(m_themesModel->currentIndex());
const QString themeConfigPath = m_themesModel->data(currentThemeIndex, ThemesModel::PathRole).toString()
+ m_themesModel->data(currentThemeIndex, ThemesModel::ConfigFileRole).toString();
- if (!themeConfigPath.isEmpty()) {
- args[QStringLiteral("theme.conf.user")] = QVariant(themeConfigPath + QStringLiteral(".user"));
- const QString backgroundPath = m_themesModel->data(currentThemeIndex, ThemesModel::CurrentBackgroundRole).toString();
- if (!backgroundPath.isEmpty()) {
- const QString backgroundDirty = m_themesModel->data(currentThemeIndex, ThemesModel::BackgroundDirtyRole).toString();
- args[QStringLiteral("theme.conf.user/General/background")] = QStringList{backgroundPath, backgroundDirty};
- args[QStringLiteral("theme.conf.user/General/type")] = QStringLiteral("image");
- } else {
- args[QStringLiteral("theme.conf.user/General/type")] = QStringLiteral("color");
- }
- args[QStringLiteral("theme.conf.user/General/showClock")] = m_themesModel->data(currentThemeIndex, ThemesModel::ShowClockRole).toBool();
- }
args[QStringLiteral("kde_settings.conf/Theme/Current")] = currentThemeIndex.data(ThemesModel::IdRole);
args[QStringLiteral("kde_settings.conf/Autologin/User")] = m_data->sddmSettings()->user();
args[QStringLiteral("kde_settings.conf/Autologin/Session")] = m_data->sddmSettings()->session();
|