From d8c4f8b1e9c696eefe99d38ed6e8b03ad9098914 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sun, 5 Apr 2020 04:16:09 -0500 Subject: [PATCH] Renamed state change event to better represent its actual meaning --- IPA.Loader/Loader/PluginManager.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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.