Skip to content

Commit

Permalink
force data menu layer_items to update when changing linewidth or cmap
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Dec 6, 2024
1 parent 1a7d932 commit 37dc6f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4484,6 +4484,7 @@ def _on_glue_value_changed(self, value):
# currently in subscribed states will be ignored.
for viewer in self.subscribed_viewers:
viewer._update_layer_icons()
viewer.data_menu.layer._update_layer_items()
# callbacks from the viewer state also do not trigger an update to the
# layer items (tabs), so we'll force those to update from here as well.
self.plugin.layer._update_layer_items()
Expand Down

0 comments on commit 37dc6f4

Please sign in to comment.