mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add another check to avoid some corner case
This commit is contained in:
parent
8311b39ddc
commit
5389763f58
1 changed files with 2 additions and 1 deletions
|
|
@ -247,6 +247,7 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
public event NotifyCollectionChangedEventHandler CollectionChanged;
|
||||
|
||||
|
||||
protected void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
|
||||
{
|
||||
CollectionChanged?.Invoke(this, e);
|
||||
|
|
@ -277,7 +278,7 @@ namespace Flow.Launcher.ViewModel
|
|||
public void RemoveAll(int Capacity = 512)
|
||||
{
|
||||
Clear();
|
||||
if (this.Capacity > 8000)
|
||||
if (this.Capacity > 8000 && Capacity < this.Capacity)
|
||||
{
|
||||
this.Capacity = Capacity;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue