Removes MB.Enabled since it doesn't make since, Removes MB.EnableFactory since that cannot ever be not enabled, fixes up settings usage, primarily we just check for models mode

This commit is contained in:
Shannon
2021-01-19 18:29:14 +11:00
parent 0ce34bea18
commit 1614e9a53c
13 changed files with 112 additions and 133 deletions

View File

@@ -132,7 +132,7 @@ namespace Umbraco.ModelsBuilder.Embedded
}
/// <inheritdoc />
public bool Enabled => _config.Enable;
public bool Enabled => _config.ModelsMode == ModelsMode.PureLive;
/// <summary>
/// Handle the event when a reference cannot be resolved from the default context and return our custom MB assembly reference if we have one