Caps lock-related messages are irrelevant for us, remove any mention of it that's been triggering ReferenceError

This commit is contained in:
hygienic-books 2022-03-06 22:50:48 +01:00
parent 454614b28a
commit 48d57b43c9

View File

@ -292,23 +292,6 @@ Rectangle {
return userListModel.count <= userListModel.disableAvatarsThreshold && (userList.y + mainStack.y) > 0 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 { Behavior on opacity {
@ -458,7 +441,6 @@ Rectangle {
id: userPromptComponent id: userPromptComponent
Login { Login {
showUsernamePrompt: true showUsernamePrompt: true
notificationMessage: root.notificationMessage
loginScreenUiVisible: loginScreenRoot.uiVisible loginScreenUiVisible: loginScreenRoot.uiVisible
fontSize: parseInt(config.fontSize) + 2 fontSize: parseInt(config.fontSize) + 2
@ -473,12 +455,6 @@ Rectangle {
setProperty(0, "name", i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in Username and Password")); setProperty(0, "name", i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in Username and Password"));
} }
} }
onLoginRequest: {
root.notificationMessage = ""
sddm.login(username, password, sessionButton.currentIndex)
}
} }
} }