Singularity/Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/PlasticMenuItem.cs

23 lines
549 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -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()
{
PlasticPlugin.OpenPlasticWindowDisablingOfflineModeIfNeeded();
}
[MenuItem(MENU_ITEM_NAME, true)]
static bool ValidateMenu()
{
return !CollabPlugin.IsEnabled();
}
const string MENU_ITEM_NAME = "Window/" + UnityConstants.PLASTIC_WINDOW_TITLE;
}
}