QML UI: add some diagnostics to App log

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-26 21:35:35 -07:00
parent d4357b3b21
commit a4977f2a90
2 changed files with 3 additions and 0 deletions

View file

@ -26,9 +26,11 @@ Item {
onVisibleChanged: {
if (visible) {
manager.appendTextToLog("Credential scrn: show kbd was: " + (Qt.inputMethod.isVisible ? "visible" : "invisible"))
Qt.inputMethod.show()
login.forceActiveFocus()
} else {
manager.appendTextToLog("Credential scrn: hide kbd was: " + (Qt.inputMethod.isVisible ? "visible" : "invisible"))
Qt.inputMethod.hide()
}
}

View file

@ -46,6 +46,7 @@ MobileComponents.ApplicationWindow {
Action {
text: "Dive list"
onTriggered: {
manager.appendTextToLog("requested dive list with credential status " + manager.credentialStatus)
if (manager.credentialStatus == QMLManager.UNKNOWN) {
// the user has asked to change credentials - if the credentials before that
// were valid, go back to dive list