Commit 449883f2 authored by Karel Slaný's avatar Karel Slaný
Browse files

PIN code can be entered without pressing the button on start-up page.

parent 908484b7
......@@ -162,6 +162,14 @@ ApplicationWindow {
placeholderText: qsTr("Enter PIN code")
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: TextInput.AlignHCenter
function verifyPin() {
settings.verifyPin(pinCodeInput.text.toString())
}
onEditingFinished: {
verifyPin()
}
}
Text {
id: wrongPin
......@@ -177,7 +185,7 @@ ApplicationWindow {
Button {
text: qsTr("Enter")
onClicked: {
settings.verifyPin(pinCodeInput.text.toString())
pinCodeInput.verifyPin()
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment