Skip to content

Commit

Permalink
Force re-sorting of the process list view after switching between lis…
Browse files Browse the repository at this point in the history
…t/treeview mode

Fixes: #1225
  • Loading branch information
BenBE authored and cgzones committed Apr 28, 2023
1 parent 71f2e66 commit f50944c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Action.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ static Htop_Reaction actionToggleTreeView(State* st) {

if (!ss->allBranchesCollapsed)
ProcessList_expandTree(st->pl);

st->pl->needsSort = true;

return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
}

Expand Down

0 comments on commit f50944c

Please sign in to comment.