We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d23b0b3 commit 8c01761Copy full SHA for 8c01761
src/Files.App/Views/LayoutModes/ColumnViewBrowser.xaml.cs
@@ -88,13 +88,14 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
88
base.OnNavigatedTo(eventArgs);
89
90
var path = navigationArguments.NavPathParam;
91
+ var pathRoot = GetPathRoot(path);
92
var pathStack = new Stack<string>();
93
- if (path is not null)
94
+ if (!string.IsNullOrEmpty(pathRoot))
95
{
96
var rootPathList = App.QuickAccessManager.Model.FavoriteItems.Select(NormalizePath)
97
.Concat(App.CloudDrivesManager.Drives.Select(x => NormalizePath(x.Path))).ToList();
- rootPathList.Add(NormalizePath(GetPathRoot(path)));
98
+ rootPathList.Add(NormalizePath(pathRoot));
99
100
while (!rootPathList.Contains(NormalizePath(path)))
101
0 commit comments