Skip to content

Commit 6ee26e6

Browse files
authored
Refactor
1 parent 2c657c9 commit 6ee26e6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Files.App/ViewModels/ItemViewModel.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -709,26 +709,18 @@ private void OrderGroups(CancellationToken token = default)
709709
if (folderSettings.DirectoryGroupDirection == SortDirection.Ascending)
710710
{
711711
if (folderSettings.DirectoryGroupOption == GroupOption.Size)
712-
{
713712
// Always show file sections below folders
714713
FilesAndFolders.GroupedCollection.Order(x => x.OrderBy(y => y.First().PrimaryItemAttribute != StorageItemTypes.Folder).ThenBy(y => y.Model.SortIndexOverride).ThenBy(y => y.Model.Text));
715-
}
716714
else
717-
{
718715
FilesAndFolders.GroupedCollection.Order(x => x.OrderBy(y => y.Model.SortIndexOverride).ThenBy(y => y.Model.Text));
719-
}
720716
}
721717
else
722718
{
723719
if (folderSettings.DirectoryGroupOption == GroupOption.Size)
724-
{
725720
// Always show file sections below folders
726721
FilesAndFolders.GroupedCollection.Order(x => x.OrderBy(y => y.First().PrimaryItemAttribute != StorageItemTypes.Folder).ThenByDescending(y => y.Model.SortIndexOverride).ThenByDescending(y => y.Model.Text));
727-
}
728722
else
729-
{
730723
FilesAndFolders.GroupedCollection.Order(x => x.OrderByDescending(y => y.Model.SortIndexOverride).ThenByDescending(y => y.Model.Text));
731-
}
732724
}
733725
FilesAndFolders.GroupedCollection.IsSorted = true;
734726
}

0 commit comments

Comments
 (0)