configuration rework
This commit is contained in:
19
MareSynchronos/Mediator/WindowMediatorSubscriberBase.cs
Normal file
19
MareSynchronos/Mediator/WindowMediatorSubscriberBase.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Dalamud.Interface.Windowing;
|
||||
using MareSynchronos.Utils;
|
||||
|
||||
namespace MareSynchronos.Mediator;
|
||||
|
||||
public abstract class WindowMediatorSubscriberBase : Window, IMediatorSubscriber
|
||||
{
|
||||
public MareMediator Mediator { get; }
|
||||
protected WindowMediatorSubscriberBase(MareMediator mediator, string name) : base(name)
|
||||
{
|
||||
Mediator = mediator;
|
||||
}
|
||||
|
||||
public virtual void Dispose()
|
||||
{
|
||||
Logger.Verbose($"Disposing {GetType()}");
|
||||
Mediator.UnsubscribeAll(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user