Browse Source

qml: save with user entered amount

master
Sander van Grieken 3 years ago
parent
commit
793cbd1c6e
  1. 5
      electrum/gui/qml/qeinvoice.py

5
electrum/gui/qml/qeinvoice.py

@ -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)

Loading…
Cancel
Save