Skip to content

Commit

Permalink
Bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Mar 5, 2024
1 parent baef40c commit f9306f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions leads_vec/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f9306f0

Please sign in to comment.