public static void ApplyCurrentSettings()
        {
            var settings = EditorBuildConfigs.GetActiveSettings <P4IgnoreSettings>();

            if (settings == null)
            {
                return;
            }

            if (settings.autoGenerateP4IgnoreFile)
            {
                MenuItemTools.GenerateFile("p4ignore", settings.p4IgnoreFileName, settings.p4IgnoreTemplate.GetGuid());
            }

            if (settings.autosetP4IgnoreVariable)
            {
                SetP4IgnoreFileVariable(settings.p4IgnoreFileName);
            }
        }
示例#2
0
        public override void InitializeOnLoad(AppConfig.AppConfig appConfig)
        {
            var settings = appConfig.GetSettings <P4IgnoreSettings>();

            if (settings == null)
            {
                return;
            }

            if (settings.autoGenerateP4IgnoreFile)
            {
                MenuItemTools.GenerateFile("p4ignore", settings.p4IgnoreFileName, settings.p4IgnoreTemplate.GetGuid());
            }

            if (settings.autosetP4IgnoreVariable)
            {
                this.SetP4IgnoreFileVariable(settings.p4IgnoreFileName);
            }
        }