Fixed bug when staging a KER part.
[VesselSimulator.git] / KerbalEngineer / Flight / ActionMenu.cs
blob:a/KerbalEngineer/Flight/ActionMenu.cs -> blob:b/KerbalEngineer/Flight/ActionMenu.cs
--- a/KerbalEngineer/Flight/ActionMenu.cs
+++ b/KerbalEngineer/Flight/ActionMenu.cs
@@ -34,6 +34,7 @@
     /// <summary>

     ///     Graphical controller for section interaction in the form of a menu system.

     /// </summary>

+    [KSPAddon(KSPAddon.Startup.Flight, false)]

     public class ActionMenu : MonoBehaviour

     {

         #region Constants

@@ -184,7 +185,7 @@
         {

             try

             {

-                if (!this.isOpen)

+                if (!this.isOpen || (this.button != null && this.button.State == RUIToggleButton.ButtonState.DISABLED))

                 {

                     return;

                 }