1
0
This commit is contained in:
Sander van Grieken
2022-06-13 19:00:31 +02:00
parent f6a46f3900
commit 8f8a1fc8cf
15 changed files with 682 additions and 68 deletions

View File

@@ -126,7 +126,7 @@ Dialog {
text: qsTr('Save')
icon.source: '../../icons/save.png'
visible: invoice_key == ''
enabled: invoice.invoiceType == Invoice.OnchainInvoice
enabled: invoice.canSave
onClicked: {
invoice.save_invoice()
dialog.close()
@@ -138,10 +138,13 @@ Dialog {
icon.source: '../../icons/confirmed.png'
enabled: invoice.invoiceType != Invoice.Invalid // TODO && has funds
onClicked: {
invoice.save_invoice()
if (invoice_key == '')
invoice.save_invoice()
dialog.close()
if (invoice.invoiceType == Invoice.OnchainInvoice) {
doPay() // only signal here
} else if (invoice.invoiceType == Invoice.LightningInvoice) {
doPay() // only signal here
}
}
}