From 48d57b43c994ed3e5c839626abef86139843654e Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sun, 6 Mar 2022 22:50:48 +0100 Subject: [PATCH] Caps lock-related messages are irrelevant for us, remove any mention of it that's been triggering ReferenceError --- Main.qml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/Main.qml b/Main.qml index 46381a9..edfb49a 100644 --- a/Main.qml +++ b/Main.qml @@ -292,23 +292,6 @@ Rectangle { return userListModel.count <= userListModel.disableAvatarsThreshold && (userList.y + mainStack.y) > 0 } - - notificationMessage: { - var text = "" - if (keystateSource.data["Caps Lock"]["Locked"]) { - text += i18nd("plasma_lookandfeel_org.kde.lookandfeel","Caps Lock is on") - if (root.notificationMessage) { - text += " • " - } - } - text += root.notificationMessage - return text - } - - onLoginRequest: { - root.notificationMessage = "" - sddm.login(username, password, sessionButton.currentIndex) - } } Behavior on opacity { @@ -458,7 +441,6 @@ Rectangle { id: userPromptComponent Login { showUsernamePrompt: true - notificationMessage: root.notificationMessage loginScreenUiVisible: loginScreenRoot.uiVisible fontSize: parseInt(config.fontSize) + 2 @@ -473,12 +455,6 @@ Rectangle { setProperty(0, "name", i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in Username and Password")); } } - - onLoginRequest: { - root.notificationMessage = "" - sddm.login(username, password, sessionButton.currentIndex) - } - } }