qt: defer refreshing tabs until they are visible
very loosely based on Electron-Cash/Electron-Cash@522e7ca59e
This commit is contained in:
@@ -102,6 +102,8 @@ class ContactList(MyTreeView):
|
||||
menu.exec_(self.viewport().mapToGlobal(position))
|
||||
|
||||
def update(self):
|
||||
if self.maybe_defer_update():
|
||||
return
|
||||
current_key = self.current_item_user_role(col=self.Columns.NAME)
|
||||
self.model().clear()
|
||||
self.update_headers(self.__class__.headers)
|
||||
|
||||
Reference in New Issue
Block a user