Skip to content

Commit

Permalink
Disable widget updates if treeview is hidden.
Browse files Browse the repository at this point in the history
  • Loading branch information
crimsonskylark committed Sep 2, 2024
1 parent 48071ef commit b3514bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions calltree.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ def set_func_calls(self, cur_func, cur_std_item, is_caller: bool, depth=0):
)

def update_widget(self, cur_func: Function):
if not self.treeview.isVisible():
return

# Clear previous calls
self.clear()
call_root_node = self.model.invisibleRootItem()
Expand Down

0 comments on commit b3514bc

Please sign in to comment.