Display banned plugins for updating

This commit is contained in:
Raymond 2021-09-21 10:15:51 -04:00
parent f1e5a21494
commit f98193a06d
2 changed files with 31 additions and 2 deletions

View file

@ -129,6 +129,9 @@ namespace Dalamud.Plugin.Internal
this.testingFile.Delete();
}
var pluginManager = Service<PluginManager>.Get();
this.IsBanned = pluginManager.IsManifestBanned(this.Manifest);
this.SaveManifest();
}
@ -183,6 +186,11 @@ namespace Dalamud.Plugin.Internal
/// </summary>
public bool IsTesting => this.Manifest.IsTestingExclusive || this.Manifest.Testing;
/// <summary>
/// Gets a value indicating whether this plugin has been banned.
/// </summary>
public bool IsBanned { get; }
/// <summary>
/// Gets a value indicating whether this plugin is dev plugin.
/// </summary>
@ -262,7 +270,9 @@ namespace Dalamud.Plugin.Internal
{
var manifestFile = LocalPluginManifest.GetManifestFile(this.DllFile);
if (manifestFile.Exists)
{
this.Manifest = LocalPluginManifest.Load(manifestFile);
}
}
}