mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-26 02:58:08 +01:00
fix(image_base): fix cleanup of uninitialized image layer
This commit is contained in:
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()
|
||||
Reference in new issue
Block a user