Move update-state-vars defaults above step mode block

incremental_update_paths
Tyler Goodlet 2022-05-25 11:41:52 -04:00
parent 04897fd402
commit d4f31f2b3c
1 changed files with 6 additions and 6 deletions

View File

@ -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()