UnexpectedErrorPopup: implement "Report" button

Currently just opens the issue section of the CONTRIBUTING.md
in users's browser.
This commit is contained in:
miruka 2021-04-14 14:24:26 -04:00
parent 4ef8e2f1fb
commit 2aebab5919

View File

@ -17,19 +17,22 @@ HColumnPopup {
page.footer: AutoDirectionLayout { page.footer: AutoDirectionLayout {
PositiveButton { PositiveButton {
id: reportButton
text: qsTr("Report") text: qsTr("Report")
icon.name: "report-error" icon.name: "report-error"
enabled: false // TODO onClicked: Qt.openUrlExternally(
"https://github.com/mirukana/mirage/blob/master/docs/" +
"CONTRIBUTING.md#issues"
)
} }
CancelButton { CancelButton {
id: cancelButton
text: qsTr("Ignore") text: qsTr("Ignore")
onClicked: popup.close() onClicked: popup.close()
} }
} }
onOpened: cancelButton.forceActiveFocus() onOpened: reportButton.forceActiveFocus()
SummaryLabel { SummaryLabel {
text: qsTr("Unexpected error occured: %1").arg( text: qsTr("Unexpected error occured: %1").arg(