Skip to content

Commit

Permalink
Quickview Color Randomization bug fix (ArduPilot#3211)
Browse files Browse the repository at this point in the history
* fixing the quickview naming issue after the color improvement.

* fixing the quickview naming issue after the color improvement.

* fixing file differences with master

---------

Co-authored-by: autonomost <@gmail.com>
  • Loading branch information
Autonomost authored Oct 18, 2023
1 parent 80c91b2 commit 8770187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GCSViews/FlightData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4745,7 +4745,7 @@ private void setQuickViewRowsCols(string cols, string rows)
while (total > tableLayoutPanelQuick.Controls.Count)
{
//Variable to Set the name of the quickView Control/s
var NameQuickView = $"quickView {(controlCount.Count + 1)}";
var NameQuickView = "quickView" + (controlCount.Count + 1);

//if the 9 colors are equal in each list, then reset the colors in listQV
if ((listQuickView.ToList().OrderBy(x => Name) == colorsForDefaultQuickView.ToList().OrderBy(x => Name)) || (listQuickView.Count == colorsForDefaultQuickView.Length))
Expand Down

0 comments on commit 8770187

Please sign in to comment.