1
0

qml: add max amount option in invoice dialog and show in invoice delegate

This commit is contained in:
Sander van Grieken
2022-10-20 17:18:46 +02:00
parent c5d17183f7
commit 65250e69d8
3 changed files with 46 additions and 12 deletions

View File

@@ -182,7 +182,7 @@ class QEInvoiceParser(QEInvoice):
def amount(self, new_amount):
self._logger.debug(f'set new amount {repr(new_amount)}')
if self._effectiveInvoice:
self._effectiveInvoice.amount_msat = int(new_amount.satsInt * 1000)
self._effectiveInvoice.amount_msat = '!' if new_amount.isMax else int(new_amount.satsInt * 1000)
self.determine_can_pay()
self.invoiceChanged.emit()