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

23 lines
549 B
C#

1 year ago
using UnityEditor;
using Unity.PlasticSCM.Editor.UI;
namespace Unity.PlasticSCM.Editor
{
internal static class PlasticMenuItem
{
[MenuItem(MENU_ITEM_NAME, false)]
static void ShowPanel()
{
PlasticPlugin.OpenPlasticWindowDisablingOfflineModeIfNeeded();
}
[MenuItem(MENU_ITEM_NAME, true)]
static bool ValidateMenu()
{
return !CollabPlugin.IsEnabled();
}
const string MENU_ITEM_NAME = "Window/" + UnityConstants.PLASTIC_WINDOW_TITLE;
}
}