From be30724ba0eeaba214c099921579f2023d2a9a7a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 21 Apr 2016 04:52:47 -0700 Subject: 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 --- mobile-widgets/qml/main.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 372de1f27..858e9d003 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -122,7 +122,6 @@ Kirigami.ApplicationWindow { }, Kirigami.Action { text: "Manage dives" - enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL /* * disable for the beta to avoid confusion Action { @@ -135,6 +134,7 @@ Kirigami.ApplicationWindow { */ Kirigami.Action { text: "Add dive manually" + enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL onTriggered: { returnTopPage() // otherwise odd things happen with the page stack startAddDive() @@ -142,6 +142,7 @@ Kirigami.ApplicationWindow { } Kirigami.Action { text: "Manual sync with cloud" + enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL onTriggered: { globalDrawer.close() detailsWindow.endEditMode() -- cgit v1.2.3-70-g09d2