diff --git a/ChangelogController.cs b/ChangelogController.cs index 96cd047..f7b05d2 100755 --- a/ChangelogController.cs +++ b/ChangelogController.cs @@ -5,7 +5,7 @@ namespace KerbalChangelog { - [KSPAddon(KSPAddon.Startup.MainMenu, false)] + [KSPAddon(KSPAddon.Startup.MainMenu, true)] public class ChangelogController : MonoBehaviour { Rect displayWindow; @@ -28,6 +28,7 @@ private void Start() changelogs = LoadChangelogs(); Debug.Log("[KCL] Displaying " + changelogs.Count + " changelogs"); changesLoaded = true; + DontDestroyOnLoad(this); } private List LoadChangelogs() @@ -114,6 +115,7 @@ private void DrawChangelogWindow(int id) if (GUILayout.Button("Close")) { showChangelog = false; + Destroy(this); } if (GUILayout.Button("Next")) { @@ -151,4 +153,4 @@ private void DrawChangelogSelection(int id) GUILayout.EndScrollView(); } } -} \ No newline at end of file +}