Skip to content

Commit 8c01761

Browse files
authored
Fix: Fixed freeze when opening a shell folder in the columns layout (#13793)
1 parent d23b0b3 commit 8c01761

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Files.App/Views/LayoutModes/ColumnViewBrowser.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
8888
base.OnNavigatedTo(eventArgs);
8989

9090
var path = navigationArguments.NavPathParam;
91+
var pathRoot = GetPathRoot(path);
9192
var pathStack = new Stack<string>();
9293

93-
if (path is not null)
94+
if (!string.IsNullOrEmpty(pathRoot))
9495
{
9596
var rootPathList = App.QuickAccessManager.Model.FavoriteItems.Select(NormalizePath)
9697
.Concat(App.CloudDrivesManager.Drives.Select(x => NormalizePath(x.Path))).ToList();
97-
rootPathList.Add(NormalizePath(GetPathRoot(path)));
98+
rootPathList.Add(NormalizePath(pathRoot));
9899

99100
while (!rootPathList.Contains(NormalizePath(path)))
100101
{

0 commit comments

Comments
 (0)