Skip to content

Commit b478218

Browse files
committed
Revert "Code Quality: Remove setting item template and source in Omnibar (#17375)"
This reverts commit 9a2237f.
1 parent 4251b0b commit b478218

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Files.App.Controls/Omnibar/Omnibar.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ internal protected bool TryToggleIsSuggestionsPopupOpen(bool wantToOpen)
219219
return false;
220220
}
221221

222+
if (CurrentSelectedMode is not null)
223+
{
224+
_textBoxSuggestionsListView.ItemTemplate = CurrentSelectedMode.ItemTemplate;
225+
_textBoxSuggestionsListView.ItemsSource = CurrentSelectedMode.ItemsSource;
226+
}
227+
222228
_textBoxSuggestionsPopup.IsOpen = wantToOpen;
223229

224230
GlobalHelper.WriteDebugStringForOmnibar("The suggestions pop-up is open.");

0 commit comments

Comments
 (0)