Skip to content

Commit 6ba55d5

Browse files
authored
Fixed an issue that would sometimes occur when opening a network drive path in a new tab (#2288)
1 parent a9136ac commit 6ba55d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Files/Views/ModernShellPage.xaml.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,11 +653,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
653653
NavigationPath = NavParams;
654654
SidebarControl.SelectedSidebarItem = AppSettings.DrivesManager.Drives.FirstOrDefault(x => x.Path.ToString().Equals($"{NavParams[0]}:\\", StringComparison.OrdinalIgnoreCase));
655655
}
656-
else if (NavParams.StartsWith("\\\\?\\"))
656+
else if (NavParams.StartsWith("\\\\?\\")) // USB device
657657
{
658658
NavigationPath = NavParams;
659659
SidebarControl.SelectedSidebarItem = App.AppSettings.DrivesManager.Drives.FirstOrDefault(x => x.Path.ToString().Equals($"{System.IO.Path.GetPathRoot(NavParams)}", StringComparison.OrdinalIgnoreCase));
660660
}
661+
else if (NavParams.StartsWith("\\\\")) // Network share
662+
{
663+
NavigationPath = NavParams;
664+
}
661665
else if (NavParams.StartsWith(AppSettings.RecycleBinPath))
662666
{
663667
NavigationPath = NavParams;

0 commit comments

Comments
 (0)