mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use remove where for code quality
This commit is contained in:
parent
b85b2ec30a
commit
53174091d6
1 changed files with 1 additions and 4 deletions
|
|
@ -700,10 +700,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
}
|
||||
Settings.RemovePluginSettings(plugin.ID);
|
||||
AllPlugins.RemoveAll(p => p.Metadata.ID == plugin.ID);
|
||||
foreach (var globalPlugin in GlobalPlugins.Where(p => p.Metadata.ID == plugin.ID))
|
||||
{
|
||||
GlobalPlugins.Remove(globalPlugin);
|
||||
}
|
||||
GlobalPlugins.RemoveWhere(p => p.Metadata.ID == plugin.ID);
|
||||
foreach (var key in NonGlobalPlugins.Where(p => p.Value.Metadata.ID == plugin.ID).Select(p => p.Key))
|
||||
{
|
||||
NonGlobalPlugins.Remove(key);
|
||||
|
|
|
|||
Loading…
Reference in a new issue