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 6944c82 commit ab4ea7eCopy full SHA for ab4ea7e
src/Files.App/Actions/Display/GroupAction.cs
@@ -615,7 +615,12 @@ public ToggleGroupByDateUnitAction()
615
616
public Task ExecuteAsync()
617
{
618
- context.GroupByDateUnit = context.GroupByDateUnit is GroupByDateUnit.Month ? GroupByDateUnit.Year : GroupByDateUnit.Month;
+ context.GroupByDateUnit = context.GroupByDateUnit switch
619
+ {
620
+ GroupByDateUnit.Year => GroupByDateUnit.Month,
621
+ GroupByDateUnit.Month => GroupByDateUnit.Day,
622
+ _ => GroupByDateUnit.Year
623
+ };
624
625
return Task.CompletedTask;
626
}
0 commit comments