mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: inherently depend on ChatGui in PluginManager
This commit is contained in:
parent
55acadce87
commit
5a7f509941
2 changed files with 5 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ namespace Dalamud.IoC.Internal;
|
||||||
/// Mark a class as being dependent on a service, without actually injecting it.
|
/// Mark a class as being dependent on a service, without actually injecting it.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T">The service to be dependent upon.</typeparam>
|
/// <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
|
internal class InherentDependencyAttribute<T> : InherentDependencyAttribute where T : IServiceType
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,11 @@ namespace Dalamud.Plugin.Internal;
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ServiceManager.EarlyLoadedService]
|
[ServiceManager.EarlyLoadedService]
|
||||||
#pragma warning disable SA1015
|
#pragma warning disable SA1015
|
||||||
|
// DalamudTextureWrap registers textures to dispose with IM
|
||||||
[InherentDependency<InterfaceManager.InterfaceManagerWithScene>]
|
[InherentDependency<InterfaceManager.InterfaceManagerWithScene>]
|
||||||
|
|
||||||
|
// DalamudPluginInterface asks to remove chat link handlers
|
||||||
|
[InherentDependency<ChatGui>]
|
||||||
#pragma warning restore SA1015
|
#pragma warning restore SA1015
|
||||||
internal partial class PluginManager : IDisposable, IServiceType
|
internal partial class PluginManager : IDisposable, IServiceType
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue