mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
qt request_list: fix changing between items
This commit is contained in:
parent
f618bb4a67
commit
64b2844e81
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue