From f50944c3d563238c9843057978041f2cd7c3b285 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Wed, 26 Apr 2023 12:19:04 +0200 Subject: Force re-sorting of the process list view after switching between list/treeview mode Fixes: #1225 --- Action.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Action.c') diff --git a/Action.c b/Action.c index 18c990e0..c5b16360 100644 --- a/Action.c +++ b/Action.c @@ -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; } -- cgit v1.2.3