fix: inherently depend on ChatGui in PluginManager

This commit is contained in:
goat 2023-02-12 21:56:27 +01:00
parent 55acadce87
commit 5a7f509941
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 5 additions and 1 deletions

View file

@ -6,7 +6,7 @@ namespace Dalamud.IoC.Internal;
/// Mark a class as being dependent on a service, without actually injecting it.
/// </summary>
/// <typeparam name="T">The service to be dependent upon.</typeparam>
[AttributeUsage(AttributeTargets.Class)]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
internal class InherentDependencyAttribute<T> : InherentDependencyAttribute where T : IServiceType
{
}

View file

@ -35,7 +35,11 @@ namespace Dalamud.Plugin.Internal;
/// </summary>
[ServiceManager.EarlyLoadedService]
#pragma warning disable SA1015
// DalamudTextureWrap registers textures to dispose with IM
[InherentDependency<InterfaceManager.InterfaceManagerWithScene>]
// DalamudPluginInterface asks to remove chat link handlers
[InherentDependency<ChatGui>]
#pragma warning restore SA1015
internal partial class PluginManager : IDisposable, IServiceType
{