From baa3a690a309e6694106776fa6cc217372e0dbc3 Mon Sep 17 00:00:00 2001 From: Jack Ye Date: Thu, 26 Feb 2026 17:38:21 +0800 Subject: [PATCH] Fix potential race condition in the uninstall logic Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Flow.Launcher.Core/Plugin/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index a4fcb866e..199d4e7b1 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -1089,7 +1089,7 @@ namespace Flow.Launcher.Core.Plugin if (entry.Value.Count == 0) { - _nonGlobalPlugins.TryRemove(entry.Key, out var __); + _nonGlobalPlugins.TryRemove(new KeyValuePair>(entry.Key, entry.Value)); } } }