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):
|
def set_frozen(self, frozen):
|
||||||
"""A frozen plot will not be updated when the current selection is changed."""
|
"""A frozen plot will not be updated when the current selection is changed."""
|
||||||
self._frozen = frozen
|
self._frozen = frozen
|
||||||
|
if not frozen:
|
||||||
|
self.set_current_selection(self._current_selection)
|
||||||
|
|
||||||
def get_title(self):
|
def get_title(self):
|
||||||
return self.title
|
return self.title
|
||||||
|
@ -312,6 +314,8 @@ class Plot (View):
|
||||||
or not self.get_property('visible') \
|
or not self.get_property('visible') \
|
||||||
or self.current_dim != dim_name:
|
or self.current_dim != dim_name:
|
||||||
return
|
return
|
||||||
|
else:
|
||||||
|
self._current_selection = selection
|
||||||
|
|
||||||
self.set_current_selection(selection)
|
self.set_current_selection(selection)
|
||||||
|
|
||||||
|
|
Reference in New Issue