GODT-1519: move back to account view after sending bug report.

This commit is contained in:
Xavier Michelon
2022-10-24 10:03:01 +02:00
parent cc3db00a06
commit 35bc7263da
2 changed files with 8 additions and 1 deletions

View File

@ -28,6 +28,8 @@ SettingsView {
property var selectedAddress
signal bugReportWasSent()
Label {
text: qsTr("Report a problem")
colorScheme: root.colorScheme
@ -61,7 +63,7 @@ SettingsView {
}
onTextChanged: {
// Rise max length error imidiatly while typing
// Rise max length error immediately while typing
if (description.text.length > description._maxLength) {
validate()
}
@ -164,6 +166,7 @@ SettingsView {
Connections {
target: Backend
function onReportBugFinished() { sendButton.loading = false }
function onBugReportSendSuccess() { root.bugReportWasSent() }
}
}

View File

@ -359,6 +359,10 @@ Item {
onBack: {
rightContent.showHelpView()
}
onBugReportWasSent: {
rightContent.showAccount()
}
}
function showAccount(index) {