plasma5-workspace/lazy-sddm-theme.patch

38 lines
1.3 KiB
Diff

From b704fa4d735222166cd2d43c9f8da60df5b4fd0d Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Fri, 4 May 2018 09:10:10 +0200
Subject: [PATCH] sddm-theme: Set needsFullUserModel=false
Otherwise SDDM has to load all users even if they're not shown.
See https://github.com/sddm/sddm/pull/1017
---
sddm-theme/Main.qml | 2 ++
sddm-theme/theme.conf.cmake | 1 +
2 files changed, 3 insertions(+)
diff --git a/sddm-theme/Main.qml b/sddm-theme/Main.qml
index 3ef30117..775b650b 100644
--- a/sddm-theme/Main.qml
+++ b/sddm-theme/Main.qml
@@ -170,6 +170,8 @@ PlasmaCore.ColorScope {
if ( userListModel.count == 0 ) return false
+ if ( userListModel.hasOwnProperty("containsAllUsers") && !userListModel.containsAllUsers) return false
+
return userListModel.count <= userListModel.disableAvatarsThreshold && (userList.y + mainStack.y) > 0
}
diff --git a/sddm-theme/theme.conf.cmake b/sddm-theme/theme.conf.cmake
index 69d30705..6bdbc00c 100644
--- a/sddm-theme/theme.conf.cmake
+++ b/sddm-theme/theme.conf.cmake
@@ -2,3 +2,4 @@
type=image
color=#1d99f3
background=${CMAKE_INSTALL_PREFIX}/${WALLPAPER_INSTALL_DIR}/Next/contents/images/3200x2000.png
+needsFullUserModel=false
--
2.16.2