diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-11-09 10:14:15 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-10 21:59:32 +0100 |
commit | 4f0d437f1e5bde5f4e193eb81914a87d34c13eba (patch) | |
tree | 99da72d8b78cadf9fd0523a4f4651e5db7d12146 /mobile-widgets/qml/main.qml | |
parent | 80f123ce2aacc8f3180b0b7a56a027e4804ae498 (diff) | |
download | subsurface-4f0d437f1e5bde5f4e193eb81914a87d34c13eba.tar.gz |
Mobile: add ability to directly open support email
This is even easier and more obvious than copying the logs on the About page
and then manually creating an email and pasting those logs.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 47b3d8f50..3a88ad91b 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -436,6 +436,27 @@ if you have network connectivity and want to sync your data to cloud storage."), }, Kirigami.Action { icon { + name: ":/icons/ic_help_outline.svg" + } + text: qsTr("Help") + onTriggered: { + Qt.openUrlExternally("https://subsurface-divelog.org/documentation/subsurface-mobile-v2-user-manual/") + } + }, + Kirigami.Action { + icon { + name: ":/icons/ic_help_outline.svg" + } + text: qsTr("Ask for support") + onTriggered: { + if (!manager.createSupportEmail()) { + manager.copyAppLogToClipboard() + showPassiveNotification(qsTr("failed to open email client, please manually create support email to support@subsurface-divelog.org - the logs have been copied to the clipboard and can be pasted into that email."), 6000) + } + } + }, + Kirigami.Action { + icon { name: ":/icons/ic_adb.svg" } text: qsTr("Developer") @@ -477,15 +498,6 @@ if you have network connectivity and want to sync your data to cloud storage."), pageStack.push(themetest) } } - }, - Kirigami.Action { - icon { - name: ":/icons/ic_help_outline.svg" - } - text: qsTr("Help") - onTriggered: { - Qt.openUrlExternally("https://subsurface-divelog.org/documentation/subsurface-mobile-v2-user-manual/") - } } ] // end actions Image { |