diff options
author | Daniel Lange <DLange@git.local> | 2021-02-12 18:48:09 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-02-13 16:47:04 +0100 |
commit | 2c6222e30a25a833e8554709818e1c378ca46848 (patch) | |
tree | 676239606f4fbc2fd6c11bf2b675edd9bd1cbdc1 /DisplayOptionsPanel.c | |
parent | c44b2ec795d243126fd5a53169ec533f4a5b3bd0 (diff) |
Option and key ("*") to collapse / expand all branches under PID 1
(and PID 2 if kernel threads are shown)
Based on hishamhm/htop#510 by Krishna Chaitanya, B
Closes #68
Diffstat (limited to 'DisplayOptionsPanel.c')
-rw-r--r-- | DisplayOptionsPanel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c index 7e02b231..62bee9be 100644 --- a/DisplayOptionsPanel.c +++ b/DisplayOptionsPanel.c @@ -98,6 +98,7 @@ DisplayOptionsPanel* DisplayOptionsPanel_new(Settings* settings, ScreenManager* Panel_setHeader(super, "Display options"); Panel_add(super, (Object*) CheckItem_newByRef("Tree view", &(settings->treeView))); Panel_add(super, (Object*) CheckItem_newByRef("- Tree view is always sorted by PID (htop 2 behavior)", &(settings->treeViewAlwaysByPID))); + Panel_add(super, (Object*) CheckItem_newByRef("- Tree view is collapsed by default", &(settings->allBranchesCollapsed))); Panel_add(super, (Object*) CheckItem_newByRef("Shadow other users' processes", &(settings->shadowOtherUsers))); Panel_add(super, (Object*) CheckItem_newByRef("Hide kernel threads", &(settings->hideKernelThreads))); Panel_add(super, (Object*) CheckItem_newByRef("Hide userland process threads", &(settings->hideUserlandThreads))); |