Skip to content

Commit

Permalink
Fix: Fixed COMException with BaseLayoutPage.GetAllItems (files-commun…
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu authored Jan 11, 2024
1 parent 45b2d28 commit 95b1076
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Files.App/Views/Layouts/BaseLayoutPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1294,19 +1294,21 @@ private void UpdateCollectionViewSource()

if (ParentShellPageInstance.FilesystemViewModel.FilesAndFolders.IsGrouped)
{
CollectionViewSource = new()
var newSource = new CollectionViewSource()
{
IsSourceGrouped = true,
Source = ParentShellPageInstance.FilesystemViewModel.FilesAndFolders.GroupedCollection
};
CollectionViewSource = newSource;
}
else
{
CollectionViewSource = new()
var newSource = new CollectionViewSource()
{
IsSourceGrouped = false,
Source = ParentShellPageInstance.FilesystemViewModel.FilesAndFolders
};
CollectionViewSource = newSource;
}
}

Expand Down

0 comments on commit 95b1076

Please sign in to comment.