From f9306f0e1de3f32df9df0a13fe1b0e4b058f3244 Mon Sep 17 00:00:00 2001 From: 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 Date: Mon, 4 Mar 2024 20:21:12 -0500 Subject: [PATCH] Bug fixed. --- leads_vec/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/leads_vec/cli.py b/leads_vec/cli.py index cd11b52c..9f299e2c 100644 --- a/leads_vec/cli.py +++ b/leads_vec/cli.py @@ -79,8 +79,7 @@ def switch_ecs_mode(mode): manager["ecs"].configure(selected_color=(c := "green" if (ecs_mode := ECSMode[mode]) < 2 else "red"), selected_hover_color=c) ctx.ecs_mode(ecs_mode) - if ecs_mode == ECSMode.OFF: - manager.rd().control_system_switch_changed = True + manager.rd().control_system_switch_changed = True manager["ecs"] = CTkSegmentedButton(manager.root(), values=["STANDARD", "AGGRESSIVE", "SPORT", "OFF"], variable=ecs, command=switch_ecs_mode, font=("Arial", cfg.font_size_small))