Skip to content

Commit bb68b60

Browse files
authored
Fix folders sometimes using wrong grouping option (#9653)
Add group option check to Equals
1 parent ace64fb commit bb68b60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Files.Uwp/Helpers/LayoutPreferences/LayoutPreferences.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public override bool Equals(object obj)
5555
return (
5656
prefs.LayoutMode == this.LayoutMode &&
5757
prefs.GridViewSize == this.GridViewSize &&
58+
prefs.DirectoryGroupOption == this.DirectoryGroupOption &&
5859
prefs.DirectorySortOption == this.DirectorySortOption &&
5960
prefs.DirectorySortDirection == this.DirectorySortDirection &&
6061
prefs.SortDirectoriesAlongsideFiles == this.SortDirectoriesAlongsideFiles &&
@@ -68,6 +69,7 @@ public override int GetHashCode()
6869
{
6970
var hashCode = LayoutMode.GetHashCode();
7071
hashCode = (hashCode * 397) ^ GridViewSize.GetHashCode();
72+
hashCode = (hashCode * 397) ^ DirectoryGroupOption.GetHashCode();
7173
hashCode = (hashCode * 397) ^ DirectorySortOption.GetHashCode();
7274
hashCode = (hashCode * 397) ^ DirectorySortDirection.GetHashCode();
7375
hashCode = (hashCode * 397) ^ SortDirectoriesAlongsideFiles.GetHashCode();

0 commit comments

Comments
 (0)