0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

wip move processEvents before curves are resettet

This commit is contained in:
2025-04-15 13:50:11 +02:00
committed by perl_d
parent f7538c4e60
commit ffc3aebffd

View File

@ -1167,12 +1167,12 @@ class Waveform(PlotBase):
self.bec_dispatcher.disconnect_slot(
self.on_async_readback, MessageEndpoints.device_async_readback(self.old_scan_id, name)
)
QApplication.processEvents() # Process events to avoid async callbacks scheduled but executed in the wrong order
try:
curve.clear_data()
except KeyError:
logger.warning(f"Curve {name} not found in plot item.")
pass
QApplication.processEvents() # Process events to avoid async callbacks scheduled but executed in the wrong order
self.bec_dispatcher.connect_slot(
self.on_async_readback,
MessageEndpoints.device_async_readback(self.scan_id, name),