Various fixes.
[VesselSimulator.git] / KerbalEngineer / Flight / Sections / SectionEditor.cs
blob:a/KerbalEngineer/Flight/Sections/SectionEditor.cs -> blob:b/KerbalEngineer/Flight/Sections/SectionEditor.cs
--- a/KerbalEngineer/Flight/Sections/SectionEditor.cs
+++ b/KerbalEngineer/Flight/Sections/SectionEditor.cs
@@ -271,10 +271,10 @@
                 this.selectedCategory = ReadoutCategory.Rendezvous;

             }

 

-            isSelected = this.selectedCategory == ReadoutCategory.Miscellaneous;

-            if (GUILayout.Toggle(isSelected, ReadoutCategory.Miscellaneous.ToString().ToUpper(), this.categoryButtonStyle) && !isSelected)

-            {

-                this.selectedCategory = ReadoutCategory.Miscellaneous;

+            isSelected = this.selectedCategory == ReadoutCategory.Misc;

+            if (GUILayout.Toggle(isSelected, ReadoutCategory.Misc.ToString().ToUpper(), this.categoryButtonStyle) && !isSelected)

+            {

+                this.selectedCategory = ReadoutCategory.Misc;

             }

             GUILayout.EndHorizontal();

         }