Merge pull request #581 from acq4/colormap-save
Fix colormapwidget saveState
This commit is contained in:
commit
bf0ac878d8
@ -152,7 +152,7 @@ class ColorMapParameter(ptree.types.GroupParameter):
|
|||||||
def restoreState(self, state):
|
def restoreState(self, state):
|
||||||
if 'fields' in state:
|
if 'fields' in state:
|
||||||
self.setFields(state['fields'])
|
self.setFields(state['fields'])
|
||||||
for itemState in state['items']:
|
for name, itemState in state['items'].items():
|
||||||
item = self.addNew(itemState['field'])
|
item = self.addNew(itemState['field'])
|
||||||
item.restoreState(itemState)
|
item.restoreState(itemState)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user