mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9d131807d7
commit
06628e03c5
1 changed files with 2 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue