follow-up prev

These lists are only visible when non-empty. This interacts badly with
the internals of maybe_defer_update().
This commit is contained in:
SomberNight 2020-01-21 11:51:02 +01:00
parent 1d0fc6665b
commit 5fd790dec9
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
2 changed files with 2 additions and 4 deletions

View file

@ -94,8 +94,7 @@ class InvoiceList(MyTreeView):
status_item.setIcon(read_QIcon(pr_icons.get(status)))
def update(self):
if self.maybe_defer_update():
return
# not calling maybe_defer_update() as it interferes with conditional-visibility
_list = self.parent.wallet.get_invoices()
# filter out paid invoices unless we have the log
lnworker_logs = self.parent.wallet.lnworker.logs if self.parent.wallet.lnworker else {}

View file

@ -107,8 +107,7 @@ class RequestList(MyTreeView):
status_item.setIcon(read_QIcon(pr_icons.get(status)))
def update(self):
if self.maybe_defer_update():
return
# not calling maybe_defer_update() as it interferes with conditional-visibility
self.parent.update_receive_address_styling()
self.model().clear()
self.update_headers(self.__class__.headers)