From a7889d1f4e6d3ffa7ab8aa95c0af39e1024570ef Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 20 May 2023 19:28:06 +0200 Subject: [PATCH] cleanup: fix typo: verboseEnabebled -> verboseEnabled Not really relevant, because it only affects debugging output. But shows why I dislike weakly typed, non-compiled languages. Signed-off-by: Berthold Stoeger --- mobile-widgets/qml/DiveDetailsView.qml | 2 +- mobile-widgets/qml/SsrfTextField.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index eb43bb636..54df8a7c7 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -253,7 +253,7 @@ Item { // before realizing that this is actually a pinch/zoom. So let's reset this // just in case qmlProfile.opacity = 1.0 - if (manager.verboseEnabebled) + if (manager.verboseEnabled) manager.appendTextToLog("pinch started w/ previousScale " + qmlProfile.lastScale) } onPinchUpdated: { diff --git a/mobile-widgets/qml/SsrfTextField.qml b/mobile-widgets/qml/SsrfTextField.qml index 8f07f5ee1..263a05d9b 100644 --- a/mobile-widgets/qml/SsrfTextField.qml +++ b/mobile-widgets/qml/SsrfTextField.qml @@ -65,7 +65,7 @@ Controls.TextField { // make sure there's enough space for the input field above the keyboard and action button (and that it's not too far up, either) var positionInFlickable = stf.mapToItem(flickable.contentItem, 0, 0) var stfY = positionInFlickable.y - if (manager.verboseEnabebled) + if (manager.verboseEnabled) manager.appendTextToLog("position check: lower edge of view is " + (0 + flickable.contentY + flickable.height) + " and text field is at " + stfY) if (stfY + stf.height > flickable.contentY + flickable.height - 3 * Kirigami.Units.gridUnit || stfY < flickable.contentY) flickable.contentY = Math.max(0, 3 * Kirigami.Units.gridUnit + stfY + stf.height - flickable.height)