diff options
author | Denis Lisov <dennis.lissov@gmail.com> | 2021-12-16 01:33:32 +0300 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-02-13 19:50:16 +0100 |
commit | a3a7958721607b8520199563d478a315dfac678f (patch) | |
tree | 46b62cc3320dbcd5183089bb88c82fbd1d918655 /Action.c | |
parent | 4aeb146ce838c9bedd98b9d2227e8aa57464f574 (diff) |
ProcessList: sort before panel rebuild if needed
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -189,8 +189,7 @@ static Htop_Reaction actionSetSortColumn(State* st) { } Object_delete(sortPanel); - if (st->pauseProcessUpdate) - ProcessList_sort(st->pl); + st->pl->needsSort = true; return reaction | HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR; } @@ -281,8 +280,7 @@ static Htop_Reaction actionLowerPriority(State* st) { static Htop_Reaction actionInvertSortOrder(State* st) { ScreenSettings_invertSortOrder(st->settings->ss); - if (st->pauseProcessUpdate) - ProcessList_sort(st->pl); + st->pl->needsSort = true; return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING; } |