Skip to content

Commit

Permalink
Fix location of reconnecting signal
Browse files Browse the repository at this point in the history
  • Loading branch information
cmalinmayor committed Jan 14, 2025
1 parent 4ed5004 commit d58e72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/motile_tracker/data_views/views/layers/track_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def _on_paint(self, event):
self.tracks_viewer.tracks_controller.update_segmentations(
to_delete, to_update_smaller, to_update_bigger, to_add, current_timepoint
)
self.events.selected_label.connect(self._ensure_valid_label)

def _refresh(self):
"""Refresh the data in the labels layer"""
Expand All @@ -266,7 +267,6 @@ def _refresh(self):
)

self.refresh()
self.events.selected_label.connect(self._ensure_valid_label)

def update_label_colormap(self, visible: list[int] | str) -> None:
"""Updates the opacity of the label colormap to highlight the selected label
Expand Down

0 comments on commit d58e72d

Please sign in to comment.