Skip to content

Commit

Permalink
update marks when selected dataset is changed
Browse files Browse the repository at this point in the history
(including hiding when no dataset is selected)
  • Loading branch information
kecnry committed Jan 24, 2024
1 parent 8348b5b commit e4eff61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,8 @@ def __init__(self, plugin, items, selected, scale_factor, multiselect=None,

self.add_observe('is_active', self._plugin_active_changed)
self.add_observe(selected, self._update_mark_coords)
if dataset is not None:
self.add_observe(self.dataset._plugin_traitlets['selected'], self._update_mark_coords)
self.add_observe(scale_factor, self._update_mark_coords)
# add marks to any new viewers
self.hub.subscribe(self, ViewerAddedMessage, handler=self._update_mark_coords)
Expand Down

0 comments on commit e4eff61

Please # to comment.