actionExpandOrCollapseAllBranches: NOP in flat mode

This shortcut does not have any visible effect in flat mode, so disable
it completely to avoid possible confusion.
This commit is contained in:
Denis Lisov 2022-05-21 00:06:36 +03:00
parent da97d2625a
commit 17e28d5264
1 changed files with 3 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);