Commit c496a6f3 authored by Valentin Valls's avatar Valentin Valls
Browse files

The tree is anyway fully regenerated

parent 694f3b0e
......@@ -439,12 +439,9 @@ class _DataItem(_property_tree_helper.ScanRowItem):
yAxis = item.data(role=YAxesPropertyItemDelegate.YAxesRole)
assert yAxis in ["left", "right"]
curve, wasUpdated = model_helper.createCurveItem(
_curve, _wasUpdated = model_helper.createCurveItem(
plot, self.__channel, yAxis
)
if wasUpdated:
# It's now an item with a value
self.setPlotItem(curve)
def __visibilityViewChanged(self, item: qt.QStandardItem):
if self.__plotItem is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment