broulik created this revision. broulik added reviewers: Plasma, subdiff. broulik set the repository for this revision to rPLASMAWORKSPACE Plasma Workspace. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY Ask the model instead. The entry might not be there if the user is not allowed to start a new session TEST PLAN Creating new sessions (didn't know there was magic code in the session model that switching to a negative VT would start a new session...) and switching still works. Button label is also correct, even if I'm not allowed to create a new session and I select the last user. REPOSITORY rPLASMAWORKSPACE Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D3232 AFFECTED FILES lookandfeel/contents/lockscreen/LockScreenUi.qml EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: broulik, #plasma, subdiff Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas