|
|
|
@ -218,6 +218,7 @@ Item {
|
|
|
|
placeholderText: qsTr("Password")
|
|
|
|
placeholderText: qsTr("Password")
|
|
|
|
leftPadding: FishUI.Units.largeSpacing
|
|
|
|
leftPadding: FishUI.Units.largeSpacing
|
|
|
|
rightPadding: FishUI.Units.largeSpacing
|
|
|
|
rightPadding: FishUI.Units.largeSpacing
|
|
|
|
|
|
|
|
enabled: !authenticator.graceLocked
|
|
|
|
focus: true
|
|
|
|
focus: true
|
|
|
|
|
|
|
|
|
|
|
|
echoMode: TextInput.Password
|
|
|
|
echoMode: TextInput.Password
|
|
|
|
@ -242,6 +243,7 @@ Item {
|
|
|
|
Layout.preferredWidth: 260
|
|
|
|
Layout.preferredWidth: 260
|
|
|
|
text: qsTr("Unlock")
|
|
|
|
text: qsTr("Unlock")
|
|
|
|
onClicked: root.tryUnlock()
|
|
|
|
onClicked: root.tryUnlock()
|
|
|
|
|
|
|
|
enabled: !authenticator.graceLocked
|
|
|
|
|
|
|
|
|
|
|
|
scale: unlockBtn.pressed ? 0.95 : 1.0
|
|
|
|
scale: unlockBtn.pressed ? 0.95 : 1.0
|
|
|
|
|
|
|
|
|
|
|
|
@ -319,18 +321,19 @@ Item {
|
|
|
|
|
|
|
|
|
|
|
|
Connections {
|
|
|
|
Connections {
|
|
|
|
target: authenticator
|
|
|
|
target: authenticator
|
|
|
|
|
|
|
|
|
|
|
|
function onFailed() {
|
|
|
|
function onFailed() {
|
|
|
|
notificationResetTimer.start()
|
|
|
|
notificationResetTimer.start()
|
|
|
|
root.notification = qsTr("Unlocking failed")
|
|
|
|
root.notification = qsTr("Unlocking failed")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// function onGraceLockedChanged() {
|
|
|
|
function onGraceLockedChanged() {
|
|
|
|
// if (!authenticator.graceLocked) {
|
|
|
|
if (!authenticator.graceLocked) {
|
|
|
|
// root.notification = ""
|
|
|
|
root.notification = ""
|
|
|
|
// password.selectAll()
|
|
|
|
password.selectAll()
|
|
|
|
// password.focus = true
|
|
|
|
password.focus = true
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function onMessage(text) {
|
|
|
|
function onMessage(text) {
|
|
|
|
notificationResetTimer.start()
|
|
|
|
notificationResetTimer.start()
|
|
|
|
|