summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Lisov <dennis.lissov@gmail.com>2022-05-21 00:06:36 +0300
committerDenis Lisov <dennis.lissov@gmail.com>2022-05-30 10:52:12 +0300
commit17e28d5264c34075bdd4b5ebf2b7c0efb892ce2f (patch)
tree285b62c0699fbe35197e5aadeebc9787c857cf72
parentda97d2625aeb9cad57657ed9cc076b558f30921d (diff)
actionExpandOrCollapseAllBranches: NOP in flat mode
This shortcut does not have any visible effect in flat mode, so disable it completely to avoid possible confusion.
-rw-r--r--Action.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Action.c b/Action.c
index cb132b4a..9e3b94b3 100644
--- a/Action.c
+++ b/Action.c
@@ -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);

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