|
|
|
|
@ -360,7 +360,10 @@ Item {
|
|
|
|
|
lninvoiceButPayOnchain = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (invoice.invoiceType == Invoice.OnchainInvoice || lninvoiceButPayOnchain) { |
|
|
|
|
if (invoice.invoiceType == Invoice.OnchainInvoice) { |
|
|
|
|
payOnchain() |
|
|
|
|
} else if (invoice.invoiceType == Invoice.LightningInvoice) { |
|
|
|
|
if (lninvoiceButPayOnchain) { |
|
|
|
|
var dialog = app.messageDialog.createObject(mainView, { |
|
|
|
|
title: qsTr('Insufficient balance to pay over Lightning. Pay on-chain instead?'), |
|
|
|
|
yesno: true |
|
|
|
|
@ -369,11 +372,12 @@ Item {
|
|
|
|
|
payOnchain() |
|
|
|
|
}) |
|
|
|
|
dialog.open() |
|
|
|
|
} else if (invoice.invoiceType == Invoice.LightningInvoice) { |
|
|
|
|
} else { |
|
|
|
|
console.log('About to pay lightning invoice') |
|
|
|
|
invoice.payLightningInvoice() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onClosed: destroy() |
|
|
|
|
|
|
|
|
|
|