1
0

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

This commit is contained in:
Sander van Grieken
2023-03-31 15:04:27 +02:00
parent cf2ba2a5bd
commit 244ead2624
2 changed files with 6 additions and 1 deletions

View File

@@ -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()
}
}
}

View File

@@ -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: {