Browse Source

qml: add flickable to exceptiondialog

master
Sander van Grieken 3 years ago
parent
commit
a174e3780b
  1. 18
      electrum/gui/qml/components/ExceptionDialog.qml

18
electrum/gui/qml/components/ExceptionDialog.qml

@ -54,7 +54,8 @@ ElDialog
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignCenter
text: qsTr('Show report contents') text: qsTr('Show report contents')
onClicked: { onClicked: {
console.log('traceback: ' + crashData.traceback.stack) if (crashData.traceback)
console.log('traceback: ' + crashData.traceback.stack)
var dialog = report.createObject(app, { var dialog = report.createObject(app, {
reportText: crashData.reportstring reportText: crashData.reportstring
}) })
@ -123,10 +124,17 @@ ElDialog
header: null header: null
Label { Flickable {
text: reportText anchors.fill: parent
wrapMode: Text.Wrap contentHeight: reportLabel.implicitHeight
width: parent.width interactive: height < contentHeight
Label {
id: reportLabel
text: reportText
wrapMode: Text.Wrap
width: parent.width
}
} }
} }
} }

Loading…
Cancel
Save