mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-17 14:14:17 +01:00
More AddonLifecycle disabling
This commit is contained in:
parent
546507ec7f
commit
09a60e32a7
1 changed files with 6 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ internal unsafe class AddonLifecycle : IInternalDisposableService
|
||||||
/// <param name="listener">The listener to register.</param>
|
/// <param name="listener">The listener to register.</param>
|
||||||
internal void RegisterListener(AddonLifecycleEventListener listener)
|
internal void RegisterListener(AddonLifecycleEventListener listener)
|
||||||
{
|
{
|
||||||
|
// TODO: Service is currently non-functional pending DT changes. NOP'd.
|
||||||
|
return;
|
||||||
|
|
||||||
this.framework.RunOnTick(() =>
|
this.framework.RunOnTick(() =>
|
||||||
{
|
{
|
||||||
this.EventListeners.Add(listener);
|
this.EventListeners.Add(listener);
|
||||||
|
|
@ -128,6 +131,9 @@ internal unsafe class AddonLifecycle : IInternalDisposableService
|
||||||
/// <param name="listener">The listener to unregister.</param>
|
/// <param name="listener">The listener to unregister.</param>
|
||||||
internal void UnregisterListener(AddonLifecycleEventListener listener)
|
internal void UnregisterListener(AddonLifecycleEventListener listener)
|
||||||
{
|
{
|
||||||
|
// TODO: Service is currently non-functional pending DT changes. NOP'd.
|
||||||
|
return;
|
||||||
|
|
||||||
// Set removed state to true immediately, then lazily remove it from the EventListeners list on next Framework Update.
|
// Set removed state to true immediately, then lazily remove it from the EventListeners list on next Framework Update.
|
||||||
listener.Removed = true;
|
listener.Removed = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue