Skip to content

Commit a3c54ed

Browse files
committed
Improved perf when focusing on Palette mode for the first time
1 parent f454f1f commit a3c54ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ public bool IsOmnibarFocused
243243
_ = PopulateOmnibarSuggestionsForPathMode();
244244
break;
245245
case OmnibarPaletteModeName:
246-
PopulateOmnibarSuggestionsForCommandPaletteMode();
246+
if (OmnibarCommandPaletteModeSuggestionItems.Count is 0)
247+
PopulateOmnibarSuggestionsForCommandPaletteMode();
247248
break;
248249
case OmnibarSearchModeName:
249250
break;

0 commit comments

Comments
 (0)