No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CloseWindowIfOpened.cs 404B

123456789101112131415161718
  1. using UnityEditor;
  2. namespace Unity.PlasticSCM.Editor.UI
  3. {
  4. internal static class CloseWindowIfOpened
  5. {
  6. internal static void Plastic()
  7. {
  8. if (!EditorWindow.HasOpenInstances<PlasticWindow>())
  9. return;
  10. PlasticWindow window = EditorWindow.
  11. GetWindow<PlasticWindow>(null, false);
  12. window.Close();
  13. }
  14. }
  15. }