mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Add "Tree view is always sorted by PID" option to mimic htop 2 behavior
This commit is contained in:
3
Action.c
3
Action.c
@ -160,6 +160,9 @@ static bool collapseIntoParent(Panel* panel) {
|
||||
Htop_Reaction Action_setSortKey(Settings* settings, ProcessField sortKey) {
|
||||
settings->sortKey = sortKey;
|
||||
settings->direction = 1;
|
||||
if (settings->treeViewAlwaysByPID) {
|
||||
settings->treeView = false;
|
||||
}
|
||||
return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_UPDATE_PANELHDR | HTOP_KEEP_FOLLOWING;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user