diff --git a/IPA.Loader/Loader/PluginManager.cs b/IPA.Loader/Loader/PluginManager.cs index 4bdf1629..b42275c4 100644 --- a/IPA.Loader/Loader/PluginManager.cs +++ b/IPA.Loader/Loader/PluginManager.cs @@ -159,7 +159,6 @@ namespace IPA.Loader } var result = TaskEx.WhenAll(); - if (toDisable.Any()) { // then disable the mods that need to be static DisableExecutor MakeDisableExec(PluginExecutor e) @@ -209,7 +208,7 @@ namespace IPA.Loader var disabled = new Dictionary(); result = TaskEx.WhenAll(disableStructure.Select(d => Disable(d, disabled))); - OnPluginsDisabled?.Invoke(result); + OnPluginsStateChanged?.Invoke(result); } //DisabledConfig.Instance.Changed(); @@ -261,13 +260,13 @@ namespace IPA.Loader /// public static event PluginDisableDelegate PluginDisabled; /// - /// Called whenever any plugins are disabled with the representing them being disabled. + /// Called whenever any plugins have their state changed with the representing that state change. /// /// /// Note that this is called on the Unity main thread, and cannot therefore block, as the /// provided represents operations that also run on the Unity main thread. /// - public static event Action OnPluginsDisabled; + public static event Action OnPluginsStateChanged; /// /// Gets a list of all enabled BSIPA plugins. Use instead of this.