qml: save with user entered amount
This commit is contained in:
@@ -654,9 +654,12 @@ class QEInvoiceParser(QEInvoice):
|
|||||||
if self.isSaved:
|
if self.isSaved:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not self._effectiveInvoice.amount_msat and not self.amountOverride.isEmpty:
|
||||||
|
self._effectiveInvoice.amount_msat = self.amountOverride.satsInt * 1000
|
||||||
|
|
||||||
self.canSave = False
|
self.canSave = False
|
||||||
|
|
||||||
self.key = self._effectiveInvoice.get_id()
|
|
||||||
self._wallet.wallet.save_invoice(self._effectiveInvoice)
|
self._wallet.wallet.save_invoice(self._effectiveInvoice)
|
||||||
|
self.key = self._effectiveInvoice.get_id()
|
||||||
self._wallet.invoiceModel.addInvoice(self.key)
|
self._wallet.invoiceModel.addInvoice(self.key)
|
||||||
self.invoiceSaved.emit(self.key)
|
self.invoiceSaved.emit(self.key)
|
||||||
|
|||||||
Reference in New Issue
Block a user