Skip to content

Commit c361483

Browse files
authored
Feature: Increase suggestion dropdown to 10 items (#14170)
1 parent c7c8dd5 commit c361483

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Files.App/ViewModels/UserControls/SearchBoxViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public void SearchRegion_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQue
9393

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

96-
// Limit to last 5 queries to improve performance
97-
if (oldQueries.Count > 5)
98-
oldQueries.RemoveAt(5);
96+
// Limit to last 10 queries to improve performance
97+
if (oldQueries.Count > 10)
98+
oldQueries.RemoveAt(10);
9999
}
100100
}
101101

0 commit comments

Comments
 (0)