2023-03-28 13:24:16 -04:00
|
|
|
|
using Unity.PlasticSCM.Editor.UI;
|
|
|
|
|
|
|
|
|
|
namespace Unity.PlasticSCM.Editor
|
|
|
|
|
{
|
2023-05-07 18:43:11 -04:00
|
|
|
|
internal static class PlasticPluginIsEnabledPreference
|
2023-03-28 13:24:16 -04:00
|
|
|
|
{
|
|
|
|
|
internal static bool IsEnabled()
|
|
|
|
|
{
|
|
|
|
|
return BoolSetting.Load(
|
2023-05-07 18:43:11 -04:00
|
|
|
|
UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME,
|
|
|
|
|
true);
|
2023-03-28 13:24:16 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static void Enable()
|
|
|
|
|
{
|
|
|
|
|
BoolSetting.Save(
|
|
|
|
|
true,
|
2023-05-07 18:43:11 -04:00
|
|
|
|
UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME);
|
2023-03-28 13:24:16 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static void Disable()
|
|
|
|
|
{
|
|
|
|
|
BoolSetting.Save(
|
|
|
|
|
false,
|
2023-05-07 18:43:11 -04:00
|
|
|
|
UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME);
|
2023-03-28 13:24:16 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|