commit 25626cf23b0134edbef497dab0eefa3cbe79cda8
parent 958898280e5801618cec7e28d8b4f9ec3e76731a
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 7 Mar 2020 23:18:08 +0100
follow-up previous commit
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py
@@ -220,7 +220,9 @@ class SendScreen(CScreen):
self.is_lightning = True
def update(self):
- if self.app.wallet and self.payment_request_queued:
+ if self.app.wallet is None:
+ return
+ if self.payment_request_queued:
self.set_URI(self.payment_request_queued)
self.payment_request_queued = None
_list = self.app.wallet.get_invoices()
@@ -491,6 +493,8 @@ class ReceiveScreen(CScreen):
return ci
def update(self):
+ if self.app.wallet is None:
+ return
_list = self.app.wallet.get_sorted_requests()
_list.reverse()
requests_container = self.ids.requests_container