Skip to content

Commit

Permalink
Restore updated subset to layer select menus with icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Dec 26, 2024
1 parent 4c431a9 commit fe0f198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2071,6 +2071,9 @@ def _rename_subset(self, old_label, new_label, subset_group=None, check_valid=Tr
else:
subset_group.label = new_label

self.state.layer_icons[new_label] = self.state.layer_icons[old_label]
_ = self.state.layer_icons.pop(old_label)

self.hub.broadcast(SubsetRenameMessage(subset_group, old_label, new_label, sender=self))

def _reparent_subsets(self, old_parent, new_parent=None):
Expand Down
5 changes: 0 additions & 5 deletions jdaviz/configs/default/plugins/subset_tools/subset_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,6 @@ def _sync_selected_from_state(self, *args):
self._update_combination_mode()

def _on_subset_update(self, msg):
'''
if msg.attribute == "label":
print("updating label")
print(msg.subset.label)
'''
self._sync_selected_from_state()
if 'Create New' in self.subset_selected:
return
Expand Down

0 comments on commit fe0f198

Please sign in to comment.