@@ -254,9 +254,10 @@ private void ClickablePath_GettingFocus(UIElement sender, GettingFocusEventArgs
254254 ViewModel . IsEditModeEnabled = true ;
255255 }
256256
257- private void Omnibar_SuggestionChosen ( Controls . Omnibar sender , Controls . OmnibarSuggestionChosenEventArgs args )
257+ private async void Omnibar_SuggestionChosen ( Omnibar sender , OmnibarSuggestionChosenEventArgs args )
258258 {
259-
259+ if ( args . SelectedItem is OmnibarPathModeSuggestionModel item )
260+ await ViewModel . HandleFolderNavigationAsync ( item . Path ) ;
260261 }
261262
262263 private async void BreadcrumbBar_ItemClicked ( Controls . BreadcrumbBar sender , Controls . BreadcrumbBarItemClickedEventArgs args )
@@ -267,7 +268,7 @@ private async void BreadcrumbBar_ItemClicked(Controls.BreadcrumbBar sender, Cont
267268 return ;
268269 }
269270
270- await ViewModel . HandleBreadcrumbBarItemClicked ( ViewModel . PathComponents [ args . Index ] . Path ) ;
271+ await ViewModel . HandleFolderNavigationAsync ( ViewModel . PathComponents [ args . Index ] . Path ) ;
271272 }
272273
273274 private async void BreadcrumbBar_ItemDropDownFlyoutOpening ( object sender , BreadcrumbBarItemDropDownFlyoutEventArgs e )
@@ -286,13 +287,14 @@ private async void BreadcrumbBar_ItemDropDownFlyoutOpening(object sender, Breadc
286287 e . Flyout . Items . Add ( new MenuFlyoutHeaderItem ( ) { Text = "Drives" } ) ;
287288 e . Flyout . Items . Add ( new MenuFlyoutItem ( ) { Text = "Local Disk (C:)" } ) ;
288289 e . Flyout . Items . Add ( new MenuFlyoutItem ( ) { Text = "Local Disk (D:)" } ) ;
290+
289291 return ;
290292 }
291293
292294 await ViewModel . SetPathBoxDropDownFlyoutAsync ( e . Flyout , ViewModel . PathComponents [ e . Index ] ) ;
293295 }
294296
295- private void BreadcrumbBar_ItemDropDownFlyoutClosed ( object sender , Controls . BreadcrumbBarItemDropDownFlyoutEventArgs e )
297+ private void BreadcrumbBar_ItemDropDownFlyoutClosed ( object sender , BreadcrumbBarItemDropDownFlyoutEventArgs e )
296298 {
297299 // Clear the flyout items to save memory
298300 e . Flyout . Items . Clear ( ) ;
0 commit comments