Firstborn/Library/PackageCache/com.unity.collab-proxy@1.17.7/Editor/PlasticSCM/UI/CloseWindowIfOpened.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

19 lines
404 B
C#

using UnityEditor;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class CloseWindowIfOpened
{
internal static void Plastic()
{
if (!EditorWindow.HasOpenInstances<PlasticWindow>())
return;
PlasticWindow window = EditorWindow.
GetWindow<PlasticWindow>(null, false);
window.Close();
}
}
}