CogwheelUnity/Cogwheel/Library/PackageCache/com.unity.collab-proxy@2.5.2/Editor/PlasticSCM/ParentWindow.cs
Spudnut2000 86e8b2168c Init
2024-10-01 23:23:13 -05:00

16 lines
359 B
C#

using UnityEditor;
namespace Unity.PlasticSCM.Editor
{
internal class ParentWindow
{
internal static EditorWindow Get()
{
if (EditorWindow.HasOpenInstances<PlasticWindow>())
return EditorWindow.GetWindow<PlasticWindow>(false, null, false);
return EditorWindow.focusedWindow;
}
}
}