Browse Source

kivy: update receive screen after adding request

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 5 years ago
parent
commit
27a9d02b8c
  1. 2
      electrum/gui/kivy/uix/screens.py

2
electrum/gui/kivy/uix/screens.py

@ -464,6 +464,7 @@ class ReceiveScreen(CScreen):
req = self.app.wallet.make_payment_request(addr, amount, message, expiration)
self.app.wallet.add_payment_request(req, self.app.electrum_config)
key = addr
self.update()
self.app.show_request(lightning, key)
def get_card(self, req):
@ -494,7 +495,6 @@ class ReceiveScreen(CScreen):
return ci
def update(self):
self.menu_actions = [(_('Show'), self.do_show), (_('Delete'), self.do_delete)]
_list = self.app.wallet.get_sorted_requests(self.app.electrum_config)
requests_container = self.screen.ids.requests_container
requests_container.data = [self.get_card(item) for item in _list]

Loading…
Cancel
Save