mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
QML UI: allow switching to offline mode without valid credentials
If the user wants to work offline, they don't need validated credentials. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a5af2478d4
commit
be30724ba0
1 changed files with 2 additions and 1 deletions
|
@ -122,7 +122,6 @@ Kirigami.ApplicationWindow {
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: "Manage dives"
|
text: "Manage dives"
|
||||||
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
|
|
||||||
/*
|
/*
|
||||||
* disable for the beta to avoid confusion
|
* disable for the beta to avoid confusion
|
||||||
Action {
|
Action {
|
||||||
|
@ -135,6 +134,7 @@ Kirigami.ApplicationWindow {
|
||||||
*/
|
*/
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: "Add dive manually"
|
text: "Add dive manually"
|
||||||
|
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
returnTopPage() // otherwise odd things happen with the page stack
|
returnTopPage() // otherwise odd things happen with the page stack
|
||||||
startAddDive()
|
startAddDive()
|
||||||
|
@ -142,6 +142,7 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: "Manual sync with cloud"
|
text: "Manual sync with cloud"
|
||||||
|
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
globalDrawer.close()
|
globalDrawer.close()
|
||||||
detailsWindow.endEditMode()
|
detailsWindow.endEditMode()
|
||||||
|
|
Loading…
Reference in a new issue