fix(image_base): fix cleanup of uninitialized image layer

This commit is contained in:
wakonig_k authored and Klaus Wakonig committed 2025-07-29 11:19:07 +02:00
1 parent 4febfb79df
commit c1bdc506e8
1 file changed
+3 -2
@@ -1034,7 +1034,8 @@ class ImageBase(PlotBase):
if self.y_roi is not None:
self.y_roi.cleanup_pyqtgraph()
self.layer_manager.clear()
self.layer_manager = None
if self.layer_manager is not None:
self.layer_manager.clear()
self.layer_manager = None
super().cleanup()