mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: add option to disable cloud to start screen
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
be30724ba0
commit
34628f8e6d
3 changed files with 80 additions and 0 deletions
|
|
@ -217,6 +217,7 @@ Kirigami.ScrollablePage {
|
|||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
page.actions.main = page.saveAction
|
||||
page.actions.right = page.offlineAction
|
||||
title = "Cloud credentials"
|
||||
} else if(manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL) {
|
||||
page.actions.main = page.addDiveAction
|
||||
|
|
@ -276,6 +277,13 @@ Kirigami.ScrollablePage {
|
|||
}
|
||||
}
|
||||
|
||||
property QtObject offlineAction: Action {
|
||||
iconName: "qrc:/qml/nocloud.svg"
|
||||
onTriggered: {
|
||||
manager.syncToCloud = false
|
||||
}
|
||||
}
|
||||
|
||||
onBackRequested: {
|
||||
if (startPageWrapper.visible && diveListView.count > 0 && manager.credentialStatus != QMLManager.INVALID) {
|
||||
manager.credentialStatus = oldStatus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue