Skip to content

Commit

Permalink
Merge pull request #18 from crimsonskylark/no-update-when-hidden
Browse files Browse the repository at this point in the history
Disable widget updates if `CallTreeLayout.treeview` is hidden.
  • Loading branch information
elbiazo authored Sep 4, 2024
2 parents 48071ef + b3514bc commit e69d222
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 e69d222

Please sign in to comment.