Skip to content

Commit 09484a0

Browse files
committed
Improved perf when focusing on Palette mode for the first time
1 parent 09ac8c8 commit 09484a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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)