@@ -177,6 +177,7 @@ public GroupByAction()
177177 public Task ExecuteAsync ( object ? parameter = null )
178178 {
179179 DisplayContext . GroupOption = GroupOption ;
180+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
180181
181182 return Task . CompletedTask ;
182183 }
@@ -377,6 +378,7 @@ public Task ExecuteAsync(object? parameter = null)
377378 {
378379 DisplayContext . GroupOption = GroupOption ;
379380 DisplayContext . GroupByDateUnit = GroupByDateUnit ;
381+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
380382
381383 return Task . CompletedTask ;
382384 }
@@ -425,6 +427,7 @@ public GroupAscendingAction()
425427 public Task ExecuteAsync ( object ? parameter = null )
426428 {
427429 context . GroupDirection = SortDirection . Ascending ;
430+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
428431
429432 return Task . CompletedTask ;
430433 }
@@ -469,6 +472,7 @@ public GroupDescendingAction()
469472 public Task ExecuteAsync ( object ? parameter = null )
470473 {
471474 context . GroupDirection = SortDirection . Descending ;
475+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
472476
473477 return Task . CompletedTask ;
474478 }
@@ -505,6 +509,7 @@ public ToggleGroupDirectionAction()
505509 public Task ExecuteAsync ( object ? parameter = null )
506510 {
507511 context . GroupDirection = context . SortDirection is SortDirection . Descending ? SortDirection . Ascending : SortDirection . Descending ;
512+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
508513
509514 return Task . CompletedTask ;
510515 }
@@ -536,6 +541,7 @@ public GroupByYearAction()
536541 public Task ExecuteAsync ( object ? parameter = null )
537542 {
538543 context . GroupByDateUnit = GroupByDateUnit . Year ;
544+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
539545
540546 return Task . CompletedTask ;
541547 }
@@ -580,6 +586,7 @@ public GroupByMonthAction()
580586 public Task ExecuteAsync ( object ? parameter = null )
581587 {
582588 context . GroupByDateUnit = GroupByDateUnit . Month ;
589+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
583590
584591 return Task . CompletedTask ;
585592 }
@@ -621,6 +628,7 @@ public Task ExecuteAsync(object? parameter = null)
621628 GroupByDateUnit . Month => GroupByDateUnit . Day ,
622629 _ => GroupByDateUnit . Year
623630 } ;
631+ LayoutHelpers . UpdateOpenTabsPreferences ( ) ;
624632
625633 return Task . CompletedTask ;
626634 }
0 commit comments