Browse Source

qml: auto-pay if entering InvoiceDialog from a lnurl-pay dialog

master
Sander van Grieken 3 years ago
parent
commit
244ead2624
  1. 5
      electrum/gui/qml/components/InvoiceDialog.qml
  2. 2
      electrum/gui/qml/components/LnurlPayRequestDialog.qml

5
electrum/gui/qml/components/InvoiceDialog.qml

@ -456,5 +456,10 @@ ElDialog {
} else if (invoice.amount.isMax) {
amountMax.checked = true
}
if (invoice.lnurlData) {
// we arrive from a lnurl-pay confirm dialog where the user already indicated the intent to pay.
if (invoice.canPay)
doPay()
}
}
}

2
electrum/gui/qml/components/LnurlPayRequestDialog.qml

@ -92,7 +92,7 @@ ElDialog {
FlatButton {
Layout.topMargin: constants.paddingLarge
Layout.fillWidth: true
text: qsTr('Proceed')
text: qsTr('Pay')
icon.source: '../../icons/confirmed.png'
enabled: valid
onClicked: {

Loading…
Cancel
Save