mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
69f06f7043
commit
ab93e0f55c
1 changed files with 26 additions and 11 deletions
|
@ -444,19 +444,34 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
name: ":/icons/ic_help_outline.svg"
|
name: ":/icons/ic_help_outline.svg"
|
||||||
}
|
}
|
||||||
text: qsTr("Help")
|
text: qsTr("Help")
|
||||||
onTriggered: {
|
Kirigami.Action {
|
||||||
Qt.openUrlExternally("https://subsurface-divelog.org/documentation/subsurface-mobile-v2-user-manual/")
|
icon {
|
||||||
|
name: ":/go-previous-symbolic"
|
||||||
|
}
|
||||||
|
text: qsTr("Back")
|
||||||
|
onTriggered: globalDrawer.scrollViewItem.pop()
|
||||||
}
|
}
|
||||||
},
|
Kirigami.Action {
|
||||||
Kirigami.Action {
|
icon {
|
||||||
icon {
|
name: ":/icons/ic_help_outline.svg"
|
||||||
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")
|
Kirigami.Action {
|
||||||
onTriggered: {
|
icon {
|
||||||
if (!manager.createSupportEmail()) {
|
name: ":/icons/contact_support.svg"
|
||||||
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)
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue