mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
QML UI: add some diagnostics to App log
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d4357b3b21
commit
a4977f2a90
2 changed files with 3 additions and 0 deletions
|
@ -26,9 +26,11 @@ Item {
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
|
manager.appendTextToLog("Credential scrn: show kbd was: " + (Qt.inputMethod.isVisible ? "visible" : "invisible"))
|
||||||
Qt.inputMethod.show()
|
Qt.inputMethod.show()
|
||||||
login.forceActiveFocus()
|
login.forceActiveFocus()
|
||||||
} else {
|
} else {
|
||||||
|
manager.appendTextToLog("Credential scrn: hide kbd was: " + (Qt.inputMethod.isVisible ? "visible" : "invisible"))
|
||||||
Qt.inputMethod.hide()
|
Qt.inputMethod.hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ MobileComponents.ApplicationWindow {
|
||||||
Action {
|
Action {
|
||||||
text: "Dive list"
|
text: "Dive list"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
manager.appendTextToLog("requested dive list with credential status " + manager.credentialStatus)
|
||||||
if (manager.credentialStatus == QMLManager.UNKNOWN) {
|
if (manager.credentialStatus == QMLManager.UNKNOWN) {
|
||||||
// the user has asked to change credentials - if the credentials before that
|
// the user has asked to change credentials - if the credentials before that
|
||||||
// were valid, go back to dive list
|
// were valid, go back to dive list
|
||||||
|
|
Loading…
Reference in a new issue