summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-10 20:54:36 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-10 21:08:44 -0800
commit06628e03c53ff51535026f8ca24aaf42c1780b70 (patch)
treeb70f35b5f6358e89eaeb35d1331ca9b00db708ee
parent9d131807d75310bdbf77c5fd11555c70232a339a (diff)
downloadsubsurface-06628e03c53ff51535026f8ca24aaf42c1780b70.tar.gz
QML UI: disable some menu entries without valid credentials
This requires a patch to the mobile components that isn't upstream, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-mobile/qml/main.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index 7cfc768bb..657158068 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -52,6 +52,7 @@ MobileComponents.ApplicationWindow {
},
MobileComponents.ActionGroup {
text: "Manage dives"
+ enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
/*
* disable for the beta to avoid confusion
Action {
@@ -102,6 +103,7 @@ MobileComponents.ApplicationWindow {
MobileComponents.ActionGroup {
text: "GPS"
+ enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
Action {
text: "GPS-tag dives"
onTriggered: {