Fix potential race condition in the uninstall logic

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jack Ye 2026-02-26 17:38:21 +08:00 committed by GitHub
parent e103d649ed
commit baa3a690a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1089,7 +1089,7 @@ namespace Flow.Launcher.Core.Plugin
if (entry.Value.Count == 0)
{
_nonGlobalPlugins.TryRemove(entry.Key, out var __);
_nonGlobalPlugins.TryRemove(new KeyValuePair<string, List<PluginPair>>(entry.Key, entry.Value));
}
}
}