electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e362b4b94cb8b6fadbe5b05b2e3566fb47fc4c7e
parent 69b58433bfb459408b70d31c253eea6fd1522817
Author: ThomasV <thomasv@electrum.org>
Date:   Thu,  5 Mar 2020 13:15:32 +0100

kivy invoices and requests: show most recent items first

Diffstat:
Melectrum/gui/kivy/uix/screens.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py @@ -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]