guard null auth in lock surface text handler

This commit is contained in:
Damocles 2026-04-17 15:34:10 +02:00
parent 3d68d467f7
commit e8a7469d47

View file

@ -152,7 +152,8 @@ WlSessionLockSurface {
cursorVisible: false cursorVisible: false
enabled: !root._unlocking && root.auth.state !== "max" && root.auth.state !== "busy" enabled: !root._unlocking && root.auth.state !== "max" && root.auth.state !== "busy"
onTextChanged: root.auth.buffer = text onTextChanged: if (root.auth)
root.auth.buffer = text
Keys.onReturnPressed: root.auth.submit() Keys.onReturnPressed: root.auth.submit()
Keys.onEnterPressed: root.auth.submit() Keys.onEnterPressed: root.auth.submit()