aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-mobile/DiveDetails.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-mobile/DiveDetails.qml b/qt-mobile/DiveDetails.qml
index d6a562630..21127f470 100644
--- a/qt-mobile/DiveDetails.qml
+++ b/qt-mobile/DiveDetails.qml
@@ -92,9 +92,14 @@ Item {
}
}
Button {
- text: "Show/Hide Dive Profile"
+ text: "Hide Dive Profile"
onClicked: {
qmlProfile.visible = !qmlProfile.visible
+ if (qmlProfile.visible) {
+ text = "Hide Dive Profile"
+ } else {
+ text = "Show Dive Profile"
+ }
}
}