Skip to content

Commit

Permalink
small suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Aug 14, 2024
1 parent 5245f21 commit 02e45e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gui/wxpython/history/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ def _reloadNode(self, node):
"""Reload the model of a specific node."""
self._model.SortChildren(node)
self._orig_model = copy.deepcopy(self._model)
self.RefreshItems()
if node == self._model.root:
self.RefreshItems()
else:
self.RefreshNode(node, recursive=True)

def _populateDayItem(self, day_node, entry):
"""
Expand Down Expand Up @@ -536,7 +539,7 @@ def UpdateCommand(self, entry):
status=status,
timestamp=datetime_timestamp,
)
self._reloadNode(first_node)
self._reloadNode(first_node.parent)

# Show command info in info panel
self.infoPanel.showCommandInfo(command_info)
Expand Down

0 comments on commit 02e45e9

Please sign in to comment.