Skip to content

Commit 90ea956

Browse files
committed
Init
1 parent fe52157 commit 90ea956

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Files.App/UserControls/NavigationToolbar.xaml.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,10 @@ await DispatcherQueue.EnqueueOrInvokeAsync(async () =>
475475
{
476476
ViewModel.OmnibarCommandPaletteModeText = string.Empty;
477477

478-
if (ViewModel.OmnibarCommandPaletteModeSuggestionItems.Count is 0)
478+
await DispatcherQueue.EnqueueOrInvokeAsync(() =>
479479
{
480-
await DispatcherQueue.EnqueueOrInvokeAsync(() =>
481-
{
482-
ViewModel.PopulateOmnibarSuggestionsForCommandPaletteMode();
483-
});
484-
}
480+
ViewModel.PopulateOmnibarSuggestionsForCommandPaletteMode();
481+
});
485482
}
486483
else if (Omnibar.CurrentSelectedMode == OmnibarSearchMode)
487484
{

0 commit comments

Comments
 (0)