Browse Source

qml: add flickable to exceptiondialog

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

8
electrum/gui/qml/components/ExceptionDialog.qml

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

Loading…
Cancel
Save