1
0

qt: defer refreshing tabs until they are visible

very loosely based on Electron-Cash/Electron-Cash@522e7ca59e
This commit is contained in:
SomberNight
2020-01-19 07:31:50 +01:00
parent 356a0a2865
commit 1d0fc6665b
7 changed files with 33 additions and 1 deletions

View File

@@ -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)