Skip to content

Commit

Permalink
Fixed InvisibleEmulation not set/reset to the checkbox state. The bot…
Browse files Browse the repository at this point in the history
… was originally keeping this flag enabled even when it's disabled.
  • Loading branch information
tommai78101 committed Apr 9, 2023
1 parent faccd78 commit f46d515
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/GeneticAlgorithmBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,8 @@ public void StartBot() {
SetMaxSpeed();
}

if (InvisibleEmulationCheckBox.Checked) {
_previousInvisibleEmulation = MainForm.InvisibleEmulation;
MainForm.InvisibleEmulation = true;
}
_previousInvisibleEmulation = MainForm.InvisibleEmulation;
MainForm.InvisibleEmulation = InvisibleEmulationCheckBox.Checked;

UpdateBotStatusIcon();
MessageLabel.Text = "Running...";
Expand Down

0 comments on commit f46d515

Please sign in to comment.