Merge branch 'fix-allBranchesCollapsed' of tanriol/htop

This commit is contained in:
Daniel Lange
2022-05-30 10:37:19 +02:00
2 changed files with 6 additions and 0 deletions

View File

@ -242,6 +242,9 @@ static Htop_Reaction actionToggleTreeView(State* st) {
static Htop_Reaction actionExpandOrCollapseAllBranches(State* st) {
ScreenSettings* ss = st->settings->ss;
if (!ss->treeView) {
return HTOP_OK;
}
ss->allBranchesCollapsed = !ss->allBranchesCollapsed;
if (ss->allBranchesCollapsed)
ProcessList_collapseAllBranches(st->pl);