CogwheelUnity/Cogwheel/Library/PackageCache/com.unity.collab-proxy@2.5.2/Editor/PlasticSCM/PlasticPluginIsEnabledPreference.cs
Spudnut2000 86e8b2168c Init
2024-10-01 23:23:13 -05:00

29 lines
695 B
C#

using Unity.PlasticSCM.Editor.UI;
namespace Unity.PlasticSCM.Editor
{
internal static class PlasticPluginIsEnabledPreference
{
internal static bool IsEnabled()
{
return BoolSetting.Load(
UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME,
true);
}
internal static void Enable()
{
BoolSetting.Save(
true,
UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME);
}
internal static void Disable()
{
BoolSetting.Save(
false,
UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME);
}
}
}