qml: keep lnurlData even after bolt11 has been retrieved, add isLnurlPay property and save bolt11 before triggering pay
This commit is contained in:
@@ -456,10 +456,14 @@ ElDialog {
|
||||
} else if (invoice.amount.isMax) {
|
||||
amountMax.checked = true
|
||||
}
|
||||
if (invoice.lnurlData) {
|
||||
if (invoice.isLnurlPay) {
|
||||
// we arrive from a lnurl-pay confirm dialog where the user already indicated the intent to pay.
|
||||
if (invoice.canPay)
|
||||
if (invoice.canPay) {
|
||||
if (invoice_key == '') {
|
||||
invoice.save_invoice()
|
||||
}
|
||||
doPay()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user