Use PluginWatchService for Glamournumbra too

This commit is contained in:
Loporrit
2025-06-26 09:07:12 +00:00
parent 17b2998d80
commit 5fcedfa890
5 changed files with 47 additions and 24 deletions

View File

@@ -58,9 +58,8 @@ public class IpcProvider : IHostedService, IMediatorSubscriber
});
_marePluginEnabled = pi.InstalledPlugins.Any(p => p.InternalName == "MareSynchronos" && p.IsLoaded);
Mediator.Subscribe<PluginChangeMessage>(this, p => {
if (p.InternalName == "MareSynchronos")
_marePluginEnabled = p.IsLoaded;
Mediator.SubscribeKeyed<PluginChangeMessage>(this, "MareSynchronos", p => {
_marePluginEnabled = p.IsLoaded;
HandleMareImpersonation();
});
}