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.

PlasticMenuItem.cs 549B

12345678910111213141516171819202122
  1. using UnityEditor;
  2. using Unity.PlasticSCM.Editor.UI;
  3. namespace Unity.PlasticSCM.Editor
  4. {
  5. internal static class PlasticMenuItem
  6. {
  7. [MenuItem(MENU_ITEM_NAME, false)]
  8. static void ShowPanel()
  9. {
  10. PlasticPlugin.OpenPlasticWindowDisablingOfflineModeIfNeeded();
  11. }
  12. [MenuItem(MENU_ITEM_NAME, true)]
  13. static bool ValidateMenu()
  14. {
  15. return !CollabPlugin.IsEnabled();
  16. }
  17. const string MENU_ITEM_NAME = "Window/" + UnityConstants.PLASTIC_WINDOW_TITLE;
  18. }
  19. }