1
0

qml: save with user entered amount

This commit is contained in:
Sander van Grieken
2023-04-04 17:47:37 +02:00
parent 6c65161d27
commit 793cbd1c6e

View File

@@ -654,9 +654,12 @@ class QEInvoiceParser(QEInvoice):
if self.isSaved:
return
if not self._effectiveInvoice.amount_msat and not self.amountOverride.isEmpty:
self._effectiveInvoice.amount_msat = self.amountOverride.satsInt * 1000
self.canSave = False
self.key = self._effectiveInvoice.get_id()
self._wallet.wallet.save_invoice(self._effectiveInvoice)
self.key = self._effectiveInvoice.get_id()
self._wallet.invoiceModel.addInvoice(self.key)
self.invoiceSaved.emit(self.key)