diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index 41a47b3d6..134c3c002 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -60,9 +60,9 @@ namespace Flow.Launcher.Core.Plugin public static async ValueTask DisposePluginsAsync() { - foreach (var plugin in AllPlugins) + foreach (var pluginPair in AllPlugins) { - switch (plugin) + switch (pluginPair.Plugin) { case IDisposable disposable: disposable.Dispose();