Plots restore current selection on set_frozen(False)
This commit is contained in:
parent
3a62580125
commit
92a8a819e8
@ -292,6 +292,8 @@ class Plot (View):
|
||||
def set_frozen(self, frozen):
|
||||
"""A frozen plot will not be updated when the current selection is changed."""
|
||||
self._frozen = frozen
|
||||
if not frozen:
|
||||
self.set_current_selection(self._current_selection)
|
||||
|
||||
def get_title(self):
|
||||
return self.title
|
||||
@ -312,6 +314,8 @@ class Plot (View):
|
||||
or not self.get_property('visible') \
|
||||
or self.current_dim != dim_name:
|
||||
return
|
||||
else:
|
||||
self._current_selection = selection
|
||||
|
||||
self.set_current_selection(selection)
|
||||
|
||||
|
Reference in New Issue
Block a user