Skip to content

Commit 0fd051e

Browse files
authored
Merge pull request #308 from funkelab/bugfix_deleted_node_in_group
bugfix: update the groups before resetting the node selection list
2 parents 4cce302 + 7a42f1f commit 0fd051e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/motile_tracker/data_views/views_coordinator/tracks_viewer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def _refresh(self, node: str | None = None, refresh_view: bool = False) -> None:
117117
updated. Restore the selected_nodes, if possible
118118
"""
119119

120+
self.collection_widget._refresh()
121+
120122
if len(self.selected_nodes) > 0 and any(
121123
not self.tracks.graph.has_node(node) for node in self.selected_nodes
122124
):
@@ -125,7 +127,6 @@ def _refresh(self, node: str | None = None, refresh_view: bool = False) -> None:
125127
self.tracking_layers._refresh()
126128

127129
self.tracks_updated.emit(refresh_view)
128-
self.collection_widget._refresh()
129130

130131
# if a new node was added, we would like to select this one now (call this after
131132
# emitting the signal, because if the node is a new node, we have to update the

0 commit comments

Comments
 (0)