mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-05-14 10:35:42 +02:00
fix(waveform): autorange is applied with 150ms delay after curve is added
This commit is contained in:
@@ -908,6 +908,10 @@ class Waveform(PlotBase):
|
||||
self.roi_enable.emit(True) # Enable the ROI toolbar action
|
||||
self.request_dap() # Request DAP update directly without blocking proxy
|
||||
|
||||
QTimer.singleShot(
|
||||
150, self.auto_range
|
||||
) # autorange with a delay to ensure the plot is updated
|
||||
|
||||
return curve
|
||||
|
||||
def _add_curve_object(self, name: str, config: CurveConfig) -> Curve:
|
||||
|
||||
Reference in New Issue
Block a user