mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix repainting in case of tree building exception
This commit is contained in:
parent
cce1b1f702
commit
23777eed67
1 changed files with 1 additions and 1 deletions
|
@ -428,6 +428,7 @@ class SidebarTreeView(QTreeView):
|
|||
return
|
||||
|
||||
def on_done(fut: Future) -> None:
|
||||
self.setUpdatesEnabled(True)
|
||||
root = fut.result()
|
||||
model = SidebarModel(self, root)
|
||||
|
||||
|
@ -439,7 +440,6 @@ class SidebarTreeView(QTreeView):
|
|||
self.search_for(self.current_search)
|
||||
else:
|
||||
self._expand_where_necessary(model)
|
||||
self.setUpdatesEnabled(True)
|
||||
if is_current:
|
||||
self.restore_current(is_current)
|
||||
|
||||
|
|
Loading…
Reference in a new issue