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 {
PositiveButton {
id: reportButton
text: qsTr("Report")
icon.name: "report-error"
enabled: false // TODO
onClicked: Qt.openUrlExternally(
"https://github.com/mirukana/mirage/blob/master/docs/" +
"CONTRIBUTING.md#issues"
)
}
CancelButton {
id: cancelButton
text: qsTr("Ignore")
onClicked: popup.close()
}
}
onOpened: cancelButton.forceActiveFocus()
onOpened: reportButton.forceActiveFocus()
SummaryLabel {
text: qsTr("Unexpected error occured: %1").arg(