diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-14 16:28:44 +0200 |
---|---|---|
committer | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-14 16:28:50 +0200 |
commit | 60b64ceca4cdfdabefcb4951fb8ba8f8a4aa2d54 (patch) | |
tree | 1ed102e2fd81825e3de195e1cdcd898d44026252 | |
parent | 2ecd7e58d4bcead350364cfbc218e082b4edd088 (diff) | |
download | subsurface-60b64ceca4cdfdabefcb4951fb8ba8f8a4aa2d54.tar.gz |
QML UI: Hide map it text if no coordinates exists
This hides the text for the map it button if ther are no coordinates for a dive. Needed as for the dark theme the map it text was still visible.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
-rw-r--r-- | mobile-widgets/qml/DiveDetailsView.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index adea41168..0e5c90de6 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -70,6 +70,7 @@ Item { Kirigami.Label { id: buttonText text: qsTr("Map it") + visible: dive.gps !== "" color: subsurfaceTheme.darkerPrimaryTextColor anchors { horizontalCenter: parent.horizontalCenter |