mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
80f123ce2a
commit
4f0d437f1e
3 changed files with 44 additions and 17 deletions
|
@ -434,6 +434,27 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
detailsWindow.endEditMode()
|
||||
}
|
||||
},
|
||||
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"
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue