From b86bfa645e7abce55a6590ddf3472aee048540f2 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 11 Jul 2020 23:46:21 -0400 Subject: [PATCH] Clear password when the keypad is not shown --- look-and-feel/contents/lockscreen/LockScreen.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/look-and-feel/contents/lockscreen/LockScreen.qml b/look-and-feel/contents/lockscreen/LockScreen.qml index d5ec54d2..fd732f4b 100644 --- a/look-and-feel/contents/lockscreen/LockScreen.qml +++ b/look-and-feel/contents/lockscreen/LockScreen.qml @@ -97,11 +97,12 @@ PlasmaCore.ColorScope { flick(0, 1000); } } - - // wipe password at beginning - if (atYBeginning) { - - } + } + + // wipe password if it is more than half way down the screen + onContentYChanged: { + if (contentY < columnHeight / 2) + root.password = ""; } ColumnLayout {