|
@ -94,10 +94,12 @@ class RequestList(MyTreeView): |
|
|
return |
|
|
return |
|
|
req = self.parent.get_request_URI(key) |
|
|
req = self.parent.get_request_URI(key) |
|
|
elif request_type == REQUEST_TYPE_LN: |
|
|
elif request_type == REQUEST_TYPE_LN: |
|
|
preimage, req, is_received, pay_timestamp = self.wallet.lnworker.invoices.get(key, (None, None, None)) |
|
|
req, is_received = self.wallet.lnworker.invoices.get(key) or (None, None) |
|
|
if req is None: |
|
|
if req is None: |
|
|
self.update() |
|
|
self.update() |
|
|
return |
|
|
return |
|
|
|
|
|
else: |
|
|
|
|
|
raise Exception(f"unknown request type: {request_type}") |
|
|
self.parent.receive_address_e.setText(req) |
|
|
self.parent.receive_address_e.setText(req) |
|
|
|
|
|
|
|
|
def update(self): |
|
|
def update(self): |
|
|