@@ -177,6 +177,7 @@ public GroupByAction()
177
177
public Task ExecuteAsync ( object ? parameter = null )
178
178
{
179
179
DisplayContext . GroupOption = GroupOption ;
180
+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
180
181
181
182
return Task . CompletedTask ;
182
183
}
@@ -377,6 +378,7 @@ public Task ExecuteAsync(object? parameter = null)
377
378
{
378
379
DisplayContext . GroupOption = GroupOption ;
379
380
DisplayContext . GroupByDateUnit = GroupByDateUnit ;
381
+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
380
382
381
383
return Task . CompletedTask ;
382
384
}
@@ -425,6 +427,7 @@ public GroupAscendingAction()
425
427
public Task ExecuteAsync ( object ? parameter = null )
426
428
{
427
429
context . GroupDirection = SortDirection . Ascending ;
430
+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
428
431
429
432
return Task . CompletedTask ;
430
433
}
@@ -469,6 +472,7 @@ public GroupDescendingAction()
469
472
public Task ExecuteAsync ( object ? parameter = null )
470
473
{
471
474
context . GroupDirection = SortDirection . Descending ;
475
+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
472
476
473
477
return Task . CompletedTask ;
474
478
}
@@ -505,6 +509,7 @@ public ToggleGroupDirectionAction()
505
509
public Task ExecuteAsync ( object ? parameter = null )
506
510
{
507
511
context . GroupDirection = context . SortDirection is SortDirection . Descending ? SortDirection . Ascending : SortDirection . Descending ;
512
+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
508
513
509
514
return Task . CompletedTask ;
510
515
}
@@ -536,6 +541,7 @@ public GroupByYearAction()
536
541
public Task ExecuteAsync ( object ? parameter = null )
537
542
{
538
543
context . GroupByDateUnit = GroupByDateUnit . Year ;
544
+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
539
545
540
546
return Task . CompletedTask ;
541
547
}
@@ -580,6 +586,7 @@ public GroupByMonthAction()
580
586
public Task ExecuteAsync ( object ? parameter = null )
581
587
{
582
588
context . GroupByDateUnit = GroupByDateUnit . Month ;
589
+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
583
590
584
591
return Task . CompletedTask ;
585
592
}
@@ -621,6 +628,7 @@ public Task ExecuteAsync(object? parameter = null)
621
628
GroupByDateUnit . Month => GroupByDateUnit . Day ,
622
629
_ => GroupByDateUnit . Year
623
630
} ;
631
+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
624
632
625
633
return Task . CompletedTask ;
626
634
}
0 commit comments