mirror of https://github.com/xzeldon/htop.git
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:
parent
da97d2625a
commit
17e28d5264
3
Action.c
3
Action.c
|
@ -242,6 +242,9 @@ static Htop_Reaction actionToggleTreeView(State* st) {
|
||||||
|
|
||||||
static Htop_Reaction actionExpandOrCollapseAllBranches(State* st) {
|
static Htop_Reaction actionExpandOrCollapseAllBranches(State* st) {
|
||||||
ScreenSettings* ss = st->settings->ss;
|
ScreenSettings* ss = st->settings->ss;
|
||||||
|
if (!ss->treeView) {
|
||||||
|
return HTOP_OK;
|
||||||
|
}
|
||||||
ss->allBranchesCollapsed = !ss->allBranchesCollapsed;
|
ss->allBranchesCollapsed = !ss->allBranchesCollapsed;
|
||||||
if (ss->allBranchesCollapsed)
|
if (ss->allBranchesCollapsed)
|
||||||
ProcessList_collapseAllBranches(st->pl);
|
ProcessList_collapseAllBranches(st->pl);
|
||||||
|
|
Loading…
Reference in New Issue