From 747135631bfe3af5f37faa9a5d0b1a44a53f4dd1 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Sat, 1 Sep 2018 09:30:44 +0200 Subject: [PATCH] Fix kscreenlocker_greet --switchuser Summary: Years ago support was added for the lockscreen to default into switch user mode. The goal being to simplify one more task from ksmserver. It got postponed because it clashed with a change Kai made at the time. Now I'm restoring that. The code broke in the lockscreen rewrite. Test Plan: Called the switchUser DBus method Lockscreen spawned on the right page Locked screen normally, got the normal page Reviewers: #plasma, mart Reviewed By: #plasma, mart Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D15185 --- lookandfeel/contents/lockscreen/LockScreenUi.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lookandfeel/contents/lockscreen/LockScreenUi.qml b/lookandfeel/contents/lockscreen/LockScreenUi.qml index c3e87f138..70d2e3abb 100644 --- a/lookandfeel/contents/lockscreen/LockScreenUi.qml +++ b/lookandfeel/contents/lockscreen/LockScreenUi.qml @@ -256,6 +256,14 @@ PlasmaCore.ColorScope { source: "MediaControls.qml" } } + + Component.onCompleted: { + if (defaultToSwitchUser) { //context property + mainStack.push({ + item: switchSessionPage, + immediate: true}); + } + } } Loader {