Browse Source

qml: switching dialog buttons seems to SEGV sometimes

master
Sander van Grieken 3 years ago
parent
commit
623bdcdabe
  1. 6
      electrum/gui/qml/components/LightningPaymentProgressDialog.qml

6
electrum/gui/qml/components/LightningPaymentProgressDialog.qml

@ -16,7 +16,7 @@ ElDialog {
height: parent.height height: parent.height
title: qsTr('Paying Lightning Invoice...') title: qsTr('Paying Lightning Invoice...')
standardButtons: Dialog.Cancel standardButtons: Dialog.Close
modal: true modal: true
parent: Overlay.overlay parent: Overlay.overlay
@ -35,14 +35,14 @@ ElDialog {
name: 'success' name: 'success'
PropertyChanges { target: spinner; running: false } PropertyChanges { target: spinner; running: false }
PropertyChanges { target: helpText; text: qsTr('Paid!') } PropertyChanges { target: helpText; text: qsTr('Paid!') }
PropertyChanges { target: dialog; standardButtons: Dialog.Ok } // PropertyChanges { target: dialog; standardButtons: Dialog.Ok }
PropertyChanges { target: icon; source: '../../icons/confirmed.png' } PropertyChanges { target: icon; source: '../../icons/confirmed.png' }
}, },
State { State {
name: 'failed' name: 'failed'
PropertyChanges { target: spinner; running: false } PropertyChanges { target: spinner; running: false }
PropertyChanges { target: helpText; text: qsTr('Payment failed') } PropertyChanges { target: helpText; text: qsTr('Payment failed') }
PropertyChanges { target: dialog; standardButtons: Dialog.Ok } // PropertyChanges { target: dialog; standardButtons: Dialog.Ok }
PropertyChanges { target: errorText; visible: true } PropertyChanges { target: errorText; visible: true }
PropertyChanges { target: icon; source: '../../icons/warning.png' } PropertyChanges { target: icon; source: '../../icons/warning.png' }
} }

Loading…
Cancel
Save