From 5721b7da4b9ea3cbe8d027c1c45a8afbc9f5087a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 29 Mar 2023 12:15:07 +0200 Subject: [PATCH] qml: add userinfo to invoices where amount needs to be filled by user --- electrum/gui/qml/qeinvoice.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/qeinvoice.py b/electrum/gui/qml/qeinvoice.py index 367157d7e..5707e0228 100644 --- a/electrum/gui/qml/qeinvoice.py +++ b/electrum/gui/qml/qeinvoice.py @@ -348,6 +348,7 @@ class QEInvoiceParser(QEInvoice): self.canSave = True if amount.isEmpty: # unspecified amount + self.userinfo = _('Enter the amount you want to send') return if self.invoiceType == QEInvoice.Type.LightningInvoice: @@ -368,8 +369,8 @@ class QEInvoiceParser(QEInvoice): self.userinfo = { PR_EXPIRED: _('Invoice is expired'), PR_PAID: _('Invoice is already paid'), - PR_INFLIGHT: _('Invoice is already being paid'), - PR_ROUTING: _('Invoice is already being paid'), + PR_INFLIGHT: _('Payment in progress...'), + PR_ROUTING: _('Payment in progress'), PR_UNKNOWN: _('Invoice has unknown status'), }[self.status] elif self.invoiceType == QEInvoice.Type.OnchainInvoice: