暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PlasticPluginIsEnabledPreference.cs 695B

12345678910111213141516171819202122232425262728
  1. using Unity.PlasticSCM.Editor.UI;
  2. namespace Unity.PlasticSCM.Editor
  3. {
  4. internal static class PlasticPluginIsEnabledPreference
  5. {
  6. internal static bool IsEnabled()
  7. {
  8. return BoolSetting.Load(
  9. UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME,
  10. true);
  11. }
  12. internal static void Enable()
  13. {
  14. BoolSetting.Save(
  15. true,
  16. UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME);
  17. }
  18. internal static void Disable()
  19. {
  20. BoolSetting.Save(
  21. false,
  22. UnityConstants.PLASTIC_PLUGIN_IS_ENABLED_KEY_NAME);
  23. }
  24. }
  25. }