Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu committed Feb 17, 2023
1 parent 3005992 commit e56aa4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Files.App/Views/LayoutModes/ColumnViewBase.xaml.cs
Expand Up @@ -110,10 +110,9 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
columnsOwner = (navArgs.AssociatedTabInstance as FrameworkElement)?.FindAscendant<ColumnViewBrowser>();
var index = (navArgs.AssociatedTabInstance as ColumnShellPage)?.ColumnParams?.Column;
navArgs.FocusOnNavigation = index == columnsOwner?.FocusIndex;

if (index < columnsOwner?.FocusIndex)
{
FileList.ContainerContentChanging += HighlightPathDirectory;
}
}

base.OnNavigatedTo(eventArgs);
Expand Down Expand Up @@ -470,4 +469,4 @@ internal void ClearSelectionIndicator()
FileList.SelectedItem = null;
}
}
}
}

0 comments on commit e56aa4e

Please sign in to comment.