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>
This commit is contained in:
Joakim Bygdell 2017-07-14 16:28:44 +02:00
parent 2ecd7e58d4
commit 60b64ceca4

View file

@ -70,6 +70,7 @@ Item {
Kirigami.Label {
id: buttonText
text: qsTr("Map it")
visible: dive.gps !== ""
color: subsurfaceTheme.darkerPrimaryTextColor
anchors {
horizontalCenter: parent.horizontalCenter