Merge pull request #292 from VacuumBreather/minor_additions

Minor additions
This commit is contained in:
Jonathan G Rennison
2021-06-28 22:41:26 +01:00
committed by GitHub
6 changed files with 25 additions and 3 deletions

View File

@@ -722,6 +722,7 @@ public:
switch (widget) {
case WID_GL_SORT_BY_ORDER: // Flip sorting method ascending/descending
this->vehgroups.ToggleSortOrder();
this->vehgroups.ForceResort();
this->SetDirty();
break;
@@ -1044,6 +1045,7 @@ public:
case WID_GL_SORT_BY_DROPDOWN:
this->vehgroups.SetSortType(index);
this->UpdateSortingInterval();
break;
case WID_GL_FILTER_BY_CARGO: // Select a cargo filter criteria
this->SetCargoFilterIndex(index);