Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/MicroEngineer/MicroEngineerPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class MicroEngineerPlugin : BaseSpaceWarpPlugin
// AppBar button IDs
internal const string ToolbarFlightButtonID = "BTN-MicroEngineerFlight";
internal const string ToolbarOabButtonID = "BTN-MicroEngineerOAB";
internal const string ToolbarKscButtonID = "BTN-MicroEngineerKSC";

public Coroutine MainUpdateLoop;

Expand Down
2 changes: 1 addition & 1 deletion src/MicroEngineer/UI/MainGuiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void OnCloseButton(ClickEvent evt)

Utility.SaveLayout();
FlightSceneController.Instance.ShowGui = false;
GameObject.Find("BTN-MicroEngineerBtn")?.GetComponent<UIValue_WriteBool_Toggle>()?.SetValue(false);
GameObject.Find(MicroEngineerPlugin.ToolbarFlightButtonID)!.GetComponent<UIValue_WriteBool_Toggle>()!.SetValue(false);
}

private void OnMinimizeButton(ClickEvent evt)
Expand Down
2 changes: 2 additions & 0 deletions src/MicroEngineer/UI/StageInfoOABController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BepInEx.Logging;
using KSP.UI.Binding;
using MicroEngineer.Entries;
using MicroEngineer.Managers;
using MicroEngineer.Utilities;
Expand Down Expand Up @@ -207,6 +208,7 @@ private void OnCloseButton(ClickEvent evt)
StageInfoOABWindow.IsEditorActive = false;
Utility.SaveLayout();
OABSceneController.Instance.ShowGui = false;
GameObject.Find(MicroEngineerPlugin.ToolbarOabButtonID)!.GetComponent<UIValue_WriteBool_Toggle>()!.SetValue(false);
}

public void InitializeControl(BaseEntryControl control, BaseEntry entry, bool subscribeToValueChanges = true)
Expand Down