summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-04-26 12:19:04 +0200
committercgzones <cgzones@googlemail.com>2023-04-28 18:06:05 +0200
commitf50944c3d563238c9843057978041f2cd7c3b285 (patch)
treec190f8b8af2c901391196bb911516f8598a98ce1 /Action.c
parent71f2e66126286540ca88d8c36f81008ba5181f89 (diff)
Force re-sorting of the process list view after switching between list/treeview mode
Fixes: #1225
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c3
1 files changed, 3 insertions, 0 deletions
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;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy