diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-12-27 10:40:49 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-29 01:16:23 +0900 |
commit | ab93e0f55c66a244cd533039d808abf13cc3652b (patch) | |
tree | 0f7e989e94022b138adff624aa58be303609fcb8 /mobile-widgets/qml/main.qml | |
parent | 69f06f704387d8f7c7c9330950843bc6d9ba2e9c (diff) | |
download | subsurface-ab93e0f55c66a244cd533039d808abf13cc3652b.tar.gz |
mobile UI: restructure help/support menu
Instead of having two entries on the main menu, move them into a sub menu.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index c779423f0..2aaf51f44 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -444,19 +444,34 @@ if you have network connectivity and want to sync your data to cloud storage."), 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: ":/go-previous-symbolic" + } + text: qsTr("Back") + onTriggered: globalDrawer.scrollViewItem.pop() } - }, - Kirigami.Action { - icon { - name: ":/icons/ic_help_outline.svg" + Kirigami.Action { + icon { + name: ":/icons/ic_help_outline.svg" + } + text: qsTr("Show user manual") + onTriggered: { + Qt.openUrlExternally("https://subsurface-divelog.org/documentation/subsurface-mobile-v2-user-manual/") + } } - 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/contact_support.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) + } else { + globalDrawer.close() + } } } }, |