|
@ -116,6 +116,10 @@ class RequestDialog(Factory.Popup): |
|
|
if self.status == PR_UNPAID and self.is_lightning and self.app.wallet.lnworker: |
|
|
if self.status == PR_UNPAID and self.is_lightning and self.app.wallet.lnworker: |
|
|
if self.amount_sat and self.amount_sat > self.app.wallet.lnworker.num_sats_can_receive(): |
|
|
if self.amount_sat and self.amount_sat > self.app.wallet.lnworker.num_sats_can_receive(): |
|
|
self.warning = _('Warning') + ': ' + _('This amount exceeds the maximum you can currently receive with your channels') |
|
|
self.warning = _('Warning') + ': ' + _('This amount exceeds the maximum you can currently receive with your channels') |
|
|
|
|
|
if self.status == PR_UNPAID and not self.is_lightning: |
|
|
|
|
|
address = req.get_address() |
|
|
|
|
|
if self.app.wallet.is_used(address): |
|
|
|
|
|
self.warning = _('Warning') + ': ' + _('This address is being reused') |
|
|
|
|
|
|
|
|
def on_dismiss(self): |
|
|
def on_dismiss(self): |
|
|
self.app.request_popup = None |
|
|
self.app.request_popup = None |
|
|