1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

lock screen: allow starting pam auth with empty password

This commit is contained in:
bbedward
2025-09-21 09:33:19 -04:00
parent 12e8e72bb2
commit 64c8e79bf2

View File

@@ -322,7 +322,7 @@ Item {
}
}
onAccepted: {
if (!demoMode && root.passwordBuffer.length > 0 && !pam.active) {
if (!demoMode && !pam.active) {
console.log("Enter pressed, starting PAM authentication")
pam.start()
}
@@ -350,6 +350,18 @@ Item {
forceActiveFocus()
}
}
onActiveFocusChanged: {
if (!activeFocus && !demoMode && visible) {
Qt.callLater(() => forceActiveFocus())
}
}
onEnabledChanged: {
if (enabled && !demoMode && visible) {
Qt.callLater(() => forceActiveFocus())
}
}
}
KeyboardController {
@@ -546,7 +558,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
iconName: "keyboard_return"
buttonSize: 36
visible: (demoMode || (root.passwordBuffer.length > 0 && !pam.active && !root.unlocking))
visible: (demoMode || (!pam.active && !root.unlocking))
enabled: !demoMode
onClicked: {
if (!demoMode) {