From 8770187b62f1f2ed4ca97c3fd6b9224299c8eef1 Mon Sep 17 00:00:00 2001 From: Autonomost Date: Wed, 18 Oct 2023 07:34:50 -0400 Subject: [PATCH] Quickview Color Randomization bug fix (#3211) * 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> --- GCSViews/FlightData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GCSViews/FlightData.cs b/GCSViews/FlightData.cs index 7c90704993..044a3e63f6 100644 --- a/GCSViews/FlightData.cs +++ b/GCSViews/FlightData.cs @@ -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))