Fixed bugs with setting expanded and setExpanded

This commit is contained in:
Daniel Lidstrom 2020-12-21 17:34:43 -08:00
parent fab7b20094
commit 4e8a609375

View File

@ -180,14 +180,8 @@ class ParameterItem(QtGui.QTreeWidgetItem):
self.setHidden(not opts['visible'])
if 'expanded' in opts:
if self.param.opts['syncExpanded']:
if self.isExpanded() != opts['expanded']:
self.setExpanded(opts['expanded'])
if 'syncExpanded' in opts:
if opts['syncExpanded']:
if self.isExpanded() != self.param.opts['expanded']:
self.setExpanded(self.param.opts['expanded'])
if self.isExpanded() != opts['expanded']:
self.setExpanded(opts['expanded'])
if 'title' in opts:
self.titleChanged()