Skip to content

Commit 9a2237f

Browse files
Code Quality: Remove setting item template and source in Omnibar (#17375)
1 parent 8cf17eb commit 9a2237f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,6 @@ 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-
228222
_textBoxSuggestionsPopup.IsOpen = wantToOpen;
229223

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

0 commit comments

Comments
 (0)