Skip to content

Commit

Permalink
don't open data menu when populating phase viewer
Browse files Browse the repository at this point in the history
if spacetelescope/jdaviz#2742 is merged, we should include this to avoid opening the data menu when creating populated phase viewers
  • Loading branch information
kecnry committed Mar 28, 2024
1 parent 374c03d commit 6e79ceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lcviz/plugins/ephemeris/ephemeris.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def create_phase_viewer(self, ephem_component=None):
phase_viewer_id = self._generate_phase_viewer_id(ephem_component)
# TODO: stack horizontally by default?
self.app._on_new_viewer(NewViewerMessage(PhaseScatterView, data=None, sender=self.app),
vid=phase_viewer_id, name=phase_viewer_id)
vid=phase_viewer_id, name=phase_viewer_id,
open_data_menu_if_empty=False)

# access new viewer, set bookkeeping for ephemeris component
pv = self.app.get_viewer(phase_viewer_id)
Expand Down

0 comments on commit 6e79ceb

Please sign in to comment.