mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve code quality
This commit is contained in:
parent
f08466245a
commit
31c8e850cd
1 changed files with 10 additions and 4 deletions
|
|
@ -914,13 +914,19 @@ namespace Flow.Launcher.Core.Plugin
|
|||
string.Format(API.GetTranslation("failedToRemovePluginCacheMessage"), plugin.Name));
|
||||
}
|
||||
Settings.RemovePluginSettings(plugin.ID);
|
||||
_allInitializedPlugins.TryRemove(plugin.ID, out var item);
|
||||
_initFailedPlugins.TryRemove(plugin.ID, out var item1);
|
||||
_globalPlugins.TryRemove(plugin.ID, out var item2);
|
||||
{
|
||||
_allInitializedPlugins.TryRemove(plugin.ID, out var _);
|
||||
}
|
||||
{
|
||||
_initFailedPlugins.TryRemove(plugin.ID, out var _);
|
||||
}
|
||||
{
|
||||
_globalPlugins.TryRemove(plugin.ID, out var _);
|
||||
}
|
||||
var keysToRemove = _nonGlobalPlugins.Where(p => p.Value.Metadata.ID == plugin.ID).Select(p => p.Key).ToList();
|
||||
foreach (var key in keysToRemove)
|
||||
{
|
||||
_nonGlobalPlugins.Remove(key, out var item3);
|
||||
_nonGlobalPlugins.Remove(key, out var ite3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue