1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-05 00:12:49 +01:00

fix(image): reset crosshair on new scan

This commit is contained in:
2025-07-09 15:14:17 +02:00
committed by Klaus Wakonig
parent adaad4f4d5
commit e594de3ca3

View File

@@ -565,6 +565,8 @@ class Image(ImageBase):
self.main_image.clear()
self.main_image.buffer = []
self.main_image.max_len = 0
if self.crosshair is not None:
self.crosshair.reset()
image_buffer = self.adjust_image_buffer(self.main_image, data)
if self._color_bar is not None:
self._color_bar.blockSignals(True)