UnexpectedErrorPopup: implement "Report" button
Currently just opens the issue section of the CONTRIBUTING.md in users's browser.
This commit is contained in:
parent
4ef8e2f1fb
commit
2aebab5919
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user