Commit 7dd5c43c authored by Karel Slaný's avatar Karel Slaný

Minor code refactoring.

parent b93c111a
......@@ -220,7 +220,12 @@ ApplicationWindow {
}
onEditingFinished: {
verifyPin()
// This function is called repeatedly when switching
// windows. The condition should reduce PIN verification
// calls.
if (pinCodeInput.text.length > 0) {
verifyPin()
}
}
}
Text {
......@@ -267,11 +272,9 @@ ApplicationWindow {
Qt.inputMethod.hide()
pinScreen.visible = false
mainPage.visible = true
pinCodeInput.text = ""
} else {
wrongPin.visible = true
pinCodeInput.text = ""
}
wrongPin.visible = !success
pinCodeInput.text = ""
}
}
}
......
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