Fix dispose

This commit is contained in:
Jack251970 2025-03-06 20:20:30 +08:00
parent 486cc6ac49
commit af3b391676

View file

@ -577,7 +577,7 @@ namespace Flow.Launcher.Core.Plugin
throw new ArgumentException($"Plugin {plugin.Name} has been modified");
}
if (removePluginFromSettings)
if (removePluginSettings || removePluginFromSettings)
{
// If we want to remove plugin from AllPlugins,
// we need to dispose them so that they can release file handles