diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-21 05:21:56 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-22 11:59:15 -0700 |
commit | 34628f8e6d2156d7eae9bfbb64d5b43ca58e1a34 (patch) | |
tree | 0993f7d0f4e4fb4aa5ebe6558bd6e2803432b6d1 /mobile-widgets/qml/DiveList.qml | |
parent | be30724ba0eeaba214c099921579f2023d2a9a7a (diff) | |
download | subsurface-34628f8e6d2156d7eae9bfbb64d5b43ca58e1a34.tar.gz |
QML UI: add option to disable cloud to start screen
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index e5ce929d2..355e0ba34 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -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 |