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 {
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user