aerothemeplasma/plasma/shells/org.kde.plasma.desktop/contents/lockscreen_old/NoPasswordUnlock.qml
2024-08-09 03:20:25 +02:00

28 lines
680 B
QML

/*
SPDX-FileCopyrightText: 2022 David Edmundson <davidedmundson@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.2
import org.kde.plasma.components 3.0 as PlasmaComponents3
import org.kde.breeze.components
SessionManagementScreen {
focus: true
PlasmaComponents3.Button {
id: loginButton
focus: true
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Unlock")
icon.name: "unlock"
onClicked: Qt.quit();
Keys.onEnterPressed: clicked()
Keys.onReturnPressed: clicked()
}
Component.onCompleted: {
forceActiveFocus();
Qt.callLater(tryToSwitchUser, false)
}
}