Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/Unity/Farmlanders/Library/PackageCache/com.unity.collab-proxy@1.17.7/Editor/PlasticSCM/PlasticMenuItem.cs
2023-07-31 21:20:56 +02:00

29 lines
685 B
C#

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