mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use try remove for safety
This commit is contained in:
parent
0496d6c04a
commit
68e1fc28ef
1 changed files with 2 additions and 2 deletions
|
|
@ -201,7 +201,7 @@ namespace Flow.Launcher
|
|||
var name = value.GetType().GetField("AssemblyName")?.GetValue(value)?.ToString();
|
||||
if (name == assemblyName)
|
||||
{
|
||||
_pluginJsonStorages.Remove(key, out var pluginJsonStorage);
|
||||
_pluginJsonStorages.TryRemove(key, out var pluginJsonStorage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -344,7 +344,7 @@ namespace Flow.Launcher
|
|||
var currentCacheDirectory = key.Item2;
|
||||
if (cacheDirectory == currentCacheDirectory)
|
||||
{
|
||||
_pluginBinaryStorages.Remove(key, out var _);
|
||||
_pluginBinaryStorages.TryRemove(key, out var _);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue