Skip to content

Commit

Permalink
Feature: Increase suggestion dropdown to 10 items (#14170)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Dec 4, 2023
1 parent c7c8dd5 commit c361483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Files.App/ViewModels/UserControls/SearchBoxViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public void SearchRegion_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQue

oldQueries.Insert(0, new SuggestionModel(e.QueryText, true));

// Limit to last 5 queries to improve performance
if (oldQueries.Count > 5)
oldQueries.RemoveAt(5);
// Limit to last 10 queries to improve performance
if (oldQueries.Count > 10)
oldQueries.RemoveAt(10);
}
}

Expand Down

0 comments on commit c361483

Please sign in to comment.