mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
wip move processEvents before curves are resettet
This commit is contained in:
@ -1167,12 +1167,12 @@ class Waveform(PlotBase):
|
|||||||
self.bec_dispatcher.disconnect_slot(
|
self.bec_dispatcher.disconnect_slot(
|
||||||
self.on_async_readback, MessageEndpoints.device_async_readback(self.old_scan_id, name)
|
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:
|
try:
|
||||||
curve.clear_data()
|
curve.clear_data()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.warning(f"Curve {name} not found in plot item.")
|
logger.warning(f"Curve {name} not found in plot item.")
|
||||||
pass
|
pass
|
||||||
QApplication.processEvents() # Process events to avoid async callbacks scheduled but executed in the wrong order
|
|
||||||
self.bec_dispatcher.connect_slot(
|
self.bec_dispatcher.connect_slot(
|
||||||
self.on_async_readback,
|
self.on_async_readback,
|
||||||
MessageEndpoints.device_async_readback(self.scan_id, name),
|
MessageEndpoints.device_async_readback(self.scan_id, name),
|
||||||
|
Reference in New Issue
Block a user