ProcessList: sort before panel rebuild if needed

This commit is contained in:
Denis Lisov
2021-12-16 01:33:32 +03:00
committed by BenBE
parent 4aeb146ce8
commit a3a7958721
4 changed files with 9 additions and 5 deletions

View File

@ -126,7 +126,7 @@ static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTi
// always update header, especially to avoid gaps in graph meters
Header_updateData(this->header);
if (!this->state->pauseProcessUpdate && (*sortTimeout == 0 || this->settings->ss->treeView)) {
ProcessList_sort(pl);
pl->needsSort = true;
*sortTimeout = 1;
}
// force redraw if the number of UID digits was changed