From d4f31f2b3c569337c67d6cc72f683bfd3794dedc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 25 May 2022 11:41:52 -0400 Subject: [PATCH] Move update-state-vars defaults above step mode block --- piker/ui/_flows.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/piker/ui/_flows.py b/piker/ui/_flows.py index 043f9243..7714dd67 100644 --- a/piker/ui/_flows.py +++ b/piker/ui/_flows.py @@ -721,6 +721,12 @@ class Flow(msgspec.Struct): # , frozen=True): last_read=read, ) + # ds update config + new_sample_rate: bool = False + should_redraw: bool = False + should_ds: bool = r._in_ds + showing_src_data: bool = not r._in_ds + if graphics._step_mode: r.allocate_xy = to_step_format @@ -754,12 +760,6 @@ class Flow(msgspec.Struct): # , frozen=True): # should_redraw = bool(append_diff) draw_last = False - # ds update config - new_sample_rate: bool = False - should_redraw: bool = False - should_ds: bool = r._in_ds - showing_src_data: bool = not r._in_ds - # downsampling incremental state checking # check for and set std m4 downsample conditions uppx = graphics.x_uppx()