mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
kivy invoices and requests: show most recent items first
This commit is contained in:
parent
69b58433bf
commit
e362b4b94c
1 changed files with 2 additions and 0 deletions
|
@ -230,6 +230,7 @@ class SendScreen(CScreen):
|
|||
self.set_URI(self.payment_request_queued)
|
||||
self.payment_request_queued = None
|
||||
_list = self.app.wallet.get_invoices()
|
||||
_list.reverse()
|
||||
lnworker_logs = self.app.wallet.lnworker.logs if self.app.wallet.lnworker else {}
|
||||
_list = [x for x in _list if x and x.get('status') != PR_PAID or x.get('rhash') in lnworker_logs]
|
||||
payments_container = self.screen.ids.payments_container
|
||||
|
@ -499,6 +500,7 @@ class ReceiveScreen(CScreen):
|
|||
if not self.loaded:
|
||||
return
|
||||
_list = self.app.wallet.get_sorted_requests()
|
||||
_list.reverse()
|
||||
requests_container = self.screen.ids.requests_container
|
||||
requests_container.data = [self.get_card(item) for item in _list if item.get('status') != PR_PAID]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue