From cf3613b7d54fed5b14bbe083fe8ea93522996843 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 4 Apr 2023 17:59:40 +0200 Subject: [PATCH] qml: handle max too --- electrum/gui/qml/qeinvoice.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/qeinvoice.py b/electrum/gui/qml/qeinvoice.py index f08650440..af6a7d524 100644 --- a/electrum/gui/qml/qeinvoice.py +++ b/electrum/gui/qml/qeinvoice.py @@ -655,7 +655,10 @@ class QEInvoiceParser(QEInvoice): return if not self._effectiveInvoice.amount_msat and not self.amountOverride.isEmpty: - self._effectiveInvoice.amount_msat = self.amountOverride.satsInt * 1000 + if self.invoiceType == QEInvoice.Type.OnchainInvoice and self.amountOverride.isMax: + self._effectiveInvoice.amount_msat = '!' + else: + self._effectiveInvoice.amount_msat = self.amountOverride.satsInt * 1000 self.canSave = False