Skip to content

Commit d83ee09

Browse files
authored
Feature: Treat libraries as root in Columns Layout (#14198)
1 parent f6d62ce commit d83ee09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Files.App/Views/Layouts/ColumnsLayoutPage.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
9999
if (!string.IsNullOrEmpty(pathRoot))
100100
{
101101
var rootPathList = App.QuickAccessManager.Model.FavoriteItems.Select(NormalizePath)
102-
.Concat(CloudDrivesManager.Drives.Select(x => NormalizePath(x.Path))).ToList();
102+
.Concat(CloudDrivesManager.Drives.Select(x => NormalizePath(x.Path))).ToList()
103+
.Concat(App.LibraryManager.Libraries.Select(x => NormalizePath(x.Path))).ToList();
103104
rootPathList.Add(NormalizePath(pathRoot));
104105

105106
while (!rootPathList.Contains(NormalizePath(path)))

0 commit comments

Comments
 (0)