From e2811ce747fd50db6394cb31c33d38e147c17452 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Mon, 5 Jul 2021 16:54:19 +0800 Subject: [PATCH] dispose PluginPair.Plugin instead of PluginPair --- Flow.Launcher.Core/Plugin/PluginManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();