From 7ef45eb058d887967bb5ed442699fee0b79d6b89 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 20 Jan 2022 13:15:59 +0000 Subject: [PATCH] Fix warning when an account is locked We had all of this wired up correctly in the backend, it just turns out that we overwrite all messages with "Unlocking failed" immediately. BUG: 428613 --- lookandfeel/contents/lockscreen/LockScreenUi.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lookandfeel/contents/lockscreen/LockScreenUi.qml b/lookandfeel/contents/lockscreen/LockScreenUi.qml index eecaa56a5..7e1a96a7f 100644 --- a/lookandfeel/contents/lockscreen/LockScreenUi.qml +++ b/lookandfeel/contents/lockscreen/LockScreenUi.qml @@ -29,7 +29,10 @@ PlasmaCore.ColorScope { Connections { target: authenticator function onFailed() { - root.notification = i18nd("plasma_lookandfeel_org.kde.lookandfeel","Unlocking failed"); + if (root.notification) { + root.notification += "\n" + } + root.notification += i18nd("plasma_lookandfeel_org.kde.lookandfeel","Unlocking failed"); } function onGraceLockedChanged() { if (!authenticator.graceLocked) { @@ -38,10 +41,10 @@ PlasmaCore.ColorScope { } } function onMessage(msg) { - root.notification = msg; + root.notification += msg; } function onError(err) { - root.notification = err; + root.notification += err; } }