Skip to content

Commit

Permalink
fix unmix state when changing value
Browse files Browse the repository at this point in the history
* used in RGB presets logic
  • Loading branch information
kecnry committed Nov 18, 2024
1 parent f4923fd commit d79d837
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4486,7 +4486,10 @@ def _on_glue_value_changed(self, value):
def unmix_state(self, new_value=None):
if new_value is None:
new_value = self.value
self._on_value_changed({'new': new_value})
if new_value != self.value:
self.value = new_value
else:
self._on_value_changed({'new': new_value})
self.sync = {**self.sync,
'mixed': False}

Expand Down

0 comments on commit d79d837

Please sign in to comment.