Skip to content

Commit 1665910

Browse files
authored
Merge pull request Flow-Launcher#3802 from Flow-Launcher/action_keyword_check
Remove plugins from global & non-global plugins when they are removed from settings
2 parents 1e9eaf5 + 63aca6e commit 1665910

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,12 @@ internal static async Task UninstallPluginAsync(PluginMetadata plugin, bool remo
700700
}
701701
Settings.RemovePluginSettings(plugin.ID);
702702
AllPlugins.RemoveAll(p => p.Metadata.ID == plugin.ID);
703+
GlobalPlugins.RemoveWhere(p => p.Metadata.ID == plugin.ID);
704+
var keysToRemove = NonGlobalPlugins.Where(p => p.Value.Metadata.ID == plugin.ID).Select(p => p.Key).ToList();
705+
foreach (var key in keysToRemove)
706+
{
707+
NonGlobalPlugins.Remove(key);
708+
}
703709
}
704710

705711
// Marked for deletion. Will be deleted on next start up

0 commit comments

Comments
 (0)