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:
@@ -94,8 +94,7 @@ class InvoiceList(MyTreeView):
|
|||||||
status_item.setIcon(read_QIcon(pr_icons.get(status)))
|
status_item.setIcon(read_QIcon(pr_icons.get(status)))
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
if self.maybe_defer_update():
|
# not calling maybe_defer_update() as it interferes with conditional-visibility
|
||||||
return
|
|
||||||
_list = self.parent.wallet.get_invoices()
|
_list = self.parent.wallet.get_invoices()
|
||||||
# filter out paid invoices unless we have the log
|
# filter out paid invoices unless we have the log
|
||||||
lnworker_logs = self.parent.wallet.lnworker.logs if self.parent.wallet.lnworker else {}
|
lnworker_logs = self.parent.wallet.lnworker.logs if self.parent.wallet.lnworker else {}
|
||||||
|
|||||||
@@ -107,8 +107,7 @@ class RequestList(MyTreeView):
|
|||||||
status_item.setIcon(read_QIcon(pr_icons.get(status)))
|
status_item.setIcon(read_QIcon(pr_icons.get(status)))
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
if self.maybe_defer_update():
|
# not calling maybe_defer_update() as it interferes with conditional-visibility
|
||||||
return
|
|
||||||
self.parent.update_receive_address_styling()
|
self.parent.update_receive_address_styling()
|
||||||
self.model().clear()
|
self.model().clear()
|
||||||
self.update_headers(self.__class__.headers)
|
self.update_headers(self.__class__.headers)
|
||||||
|
|||||||
Reference in New Issue
Block a user