Skip to content

Commit

Permalink
Little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nordie92 committed Nov 10, 2021
1 parent 1b9c56e commit 7138174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AoE4BO/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ private void timerUI_Tick(object sender, EventArgs e)
if (_stepFinished)
{
_stepFinished = false;
rtbBuildOrder.Text = "";
FillRichTextBox(_buildOrder);
}
}
Expand All @@ -84,7 +83,6 @@ private void LoadBuildOrder(string buildOrderString)
_overlay.StartBuildOrder(_buildOrder);
_ocr.Start();

rtbBuildOrder.Text = "";
FillRichTextBox(_buildOrder);
}
catch (Exception ex)
Expand Down Expand Up @@ -138,6 +136,8 @@ private void btnRestartBO_Click(object sender, EventArgs e)

private void FillRichTextBox(BuildOrder buildOrder)
{
rtbBuildOrder.Text = "";

int reqWidth = GetRequirementsWidth(buildOrder);

BuildOrderStep bos = buildOrder.FirstBuildOrderStep;
Expand Down
2 changes: 1 addition & 1 deletion AoE4BO/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static class Global
public static OCRState OCRState { get; set; }
public static float OCRDowntime { get; set; }
public static int OCRProcessTime { get; set; }
}
}

public enum BoState
{
Expand Down

0 comments on commit 7138174

Please sign in to comment.