1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-12-31 19:11:18 +01:00

fix(image_base): fix cleanup of uninitialized image layer

This commit is contained in:
2025-07-25 17:58:28 +02:00
committed by Klaus Wakonig
parent 4febfb79df
commit c1bdc506e8

View File

@@ -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()