Skip to content

Commit

Permalink
fix: sorting all columns
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic committed Aug 7, 2024
1 parent 2339b69 commit 257162f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/KubeUI/Views/ResourceListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ private void GenerateGrid()

_grid.Columns.Add(column);

Dispatcher.UIThread.Post(() => column.Sort(columnDefinition.Sort == SortDirection.Ascending ? ListSortDirection.Ascending : ListSortDirection.Descending));
if (columnDefinition.Sort != SortDirection.None)
{
Dispatcher.UIThread.Post(() => column.Sort(columnDefinition.Sort == SortDirection.Ascending ? ListSortDirection.Ascending : ListSortDirection.Descending));
}
}
catch (Exception ex)
{
Expand Down

0 comments on commit 257162f

Please sign in to comment.