Skip to content

Commit

Permalink
remove cube from viewer creator when no cube data remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Mar 27, 2024
1 parent 97e6f20 commit 5e74ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcviz/plugins/viewer_creator/viewer_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _rebuild_available_viewers(self, *args):

self.viewer_types = [v for v in self.viewer_types if v['name'].startswith('lcviz')
and not v['label'].startswith('flux-vs-phase')
and not v['label'] == 'cube'] + phase_viewers + cube_viewers
and not v['label'] in ('cube', 'image')] + phase_viewers + cube_viewers
self.send_state('viewer_types')

def vue_create_viewer(self, name):
Expand Down

0 comments on commit 5e74ebe

Please sign in to comment.