2023-03-28 13:24:16 -04:00
|
|
|
|
using UnityEditor;
|
|
|
|
|
using Unity.PlasticSCM.Editor.UI;
|
|
|
|
|
|
|
|
|
|
namespace Unity.PlasticSCM.Editor
|
|
|
|
|
{
|
|
|
|
|
internal static class PlasticMenuItem
|
|
|
|
|
{
|
|
|
|
|
[MenuItem(MENU_ITEM_NAME, false)]
|
|
|
|
|
static void ShowPanel()
|
|
|
|
|
{
|
2023-05-07 18:43:11 -04:00
|
|
|
|
PlasticPlugin.OpenPlasticWindowDisablingOfflineModeIfNeeded();
|
2023-03-28 13:24:16 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[MenuItem(MENU_ITEM_NAME, true)]
|
|
|
|
|
static bool ValidateMenu()
|
|
|
|
|
{
|
|
|
|
|
return !CollabPlugin.IsEnabled();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const string MENU_ITEM_NAME = "Window/" + UnityConstants.PLASTIC_WINDOW_TITLE;
|
|
|
|
|
}
|
|
|
|
|
}
|