diff --git a/GameData/ConformalDecals/Plugins/ConformalDecals.dll b/GameData/ConformalDecals/Plugins/ConformalDecals.dll index dad1a8e..20b7463 100644 Binary files a/GameData/ConformalDecals/Plugins/ConformalDecals.dll and b/GameData/ConformalDecals/Plugins/ConformalDecals.dll differ diff --git a/Source/ConformalDecals/ModuleConformalText.cs b/Source/ConformalDecals/ModuleConformalText.cs index f6bf14a..49906b6 100644 --- a/Source/ConformalDecals/ModuleConformalText.cs +++ b/Source/ConformalDecals/ModuleConformalText.cs @@ -210,7 +210,12 @@ namespace ConformalDecals { public override void OnDestroy() { if (HighLogic.LoadedSceneIsGame && _currentText != null) TextRenderer.UnregisterText(_currentText); - + + // close all UIs + if (_textEntryController != null) _textEntryController.Close(); + if (_fillColorPickerController != null) _fillColorPickerController.Close(); + if (_outlineColorPickerController != null) _outlineColorPickerController.Close(); + base.OnDestroy(); }