Skip to content

Commit

Permalink
add ability to restore overlay selection
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Apr 11, 2024
1 parent 6640918 commit 689ad56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jdaviz/configs/imviz/plugins/footprints/footprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,11 @@ def _on_link_type_updated(self, msg=None):

# When fp(s) added via API before WCS link. Overlays visibility & is_active
# can be True, but only last fp will display. This ensures all fp(s) display
restore_choice = self.overlay.selected
if not self.is_pixel_linked:
for choice in self.overlay.choices:
self.overlay.selected = choice
self.overlay.selected = restore_choice

def vue_link_by_wcs(self, *args):
# call other plugin so that other options (wcs_use_affine, wcs_use_fallback)
Expand Down

0 comments on commit 689ad56

Please sign in to comment.