Skip to content

Commit 82af711

Browse files
committed
Added 'no results' to the Command Palette
1 parent adb6e79 commit 82af711

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,15 @@ public void PopulateOmnibarSuggestionsForCommandPaletteMode()
12311231
{
12321232
OmnibarCommandPaletteModeSuggestionItems.Add(item);
12331233
}
1234+
1235+
if (OmnibarCommandPaletteModeSuggestionItems.Count is 0)
1236+
{
1237+
OmnibarCommandPaletteModeSuggestionItems.Add(new NavigationBarSuggestionItem()
1238+
{
1239+
PrimaryDisplay = Strings.NavigationToolbarVisiblePathNoResults.GetLocalizedResource(),
1240+
SearchText = OmnibarCommandPaletteModeText,
1241+
});
1242+
}
12341243
}
12351244

12361245
[Obsolete("Remove once Omnibar goes out of experimental.")]

0 commit comments

Comments
 (0)