Stock sections can be renamed, and custom ones hidden from the control bar.
[VesselSimulator.git] / KerbalEngineer / Flight / DisplayStack.cs
blob:a/KerbalEngineer/Flight/DisplayStack.cs -> blob:b/KerbalEngineer/Flight/DisplayStack.cs
--- a/KerbalEngineer/Flight/DisplayStack.cs
+++ b/KerbalEngineer/Flight/DisplayStack.cs
@@ -21,6 +21,7 @@
 
 using System;
 using System.Collections.Generic;
+using System.Linq;
 
 using KerbalEngineer.Extensions;
 using KerbalEngineer.Flight.Sections;
@@ -293,7 +294,7 @@
             try
             {
                 var index = 0;
-                foreach (var section in sections)
+                foreach (var section in sections.Where(s => !string.IsNullOrEmpty(s.Abbreviation) || !s.IsCustom))
                 {
                     if (index % 4 == 0)
                     {