diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2022-05-30 12:32:05 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-08-04 19:49:52 +0200 |
commit | 2b2420d0ebd4734b59f5d72ad2d5959af90da261 (patch) | |
tree | 2cf5a581d801540e80d7b13b1150d876a21be688 | |
parent | ccbd490e9bbf17ac5a6d5e4131ba9ae648fe396b (diff) |
actionExpandOrCollapse: NOOP 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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -289,6 +289,9 @@ static Htop_Reaction actionInvertSortOrder(State* st) { } static Htop_Reaction actionExpandOrCollapse(State* st) { + if (!st->settings->ss->treeView) + return HTOP_OK; + bool changed = expandCollapse((Panel*)st->mainPanel); return changed ? HTOP_RECALCULATE : HTOP_OK; } |