mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Remove the bag from dictionary if the bag is empty
This commit is contained in:
parent
af087fb85b
commit
845c331cac
1 changed files with 6 additions and 0 deletions
|
|
@ -188,6 +188,12 @@ namespace Flow.Launcher.Storage
|
||||||
{
|
{
|
||||||
value.TryTake(out recordToRemove);
|
value.TryTake(out recordToRemove);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if the bag is empty, remove the bag from the dictionary
|
||||||
|
if (value.IsEmpty)
|
||||||
|
{
|
||||||
|
records.TryRemove(result.OriginQuery.RawQuery, out _);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void AddOrUpdate(Result result)
|
internal void AddOrUpdate(Result result)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue