From 60b64ceca4cdfdabefcb4951fb8ba8f8a4aa2d54 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Fri, 14 Jul 2017 16:28:44 +0200 Subject: 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 --- mobile-widgets/qml/DiveDetailsView.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets/qml') 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 -- cgit v1.2.3-70-g09d2