mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Minor code streamlining
This commit is contained in:
@ -431,11 +431,11 @@ static void ProcessList_buildTree(ProcessList* this) {
|
||||
}
|
||||
|
||||
void ProcessList_sort(ProcessList* this) {
|
||||
if (!this->settings->treeView) {
|
||||
Vector_insertionSort(this->processes);
|
||||
} else {
|
||||
if (this->settings->treeView) {
|
||||
ProcessList_updateTreeSet(this);
|
||||
Vector_quickSortCustomCompare(this->processes, ProcessList_treeProcessCompare);
|
||||
} else {
|
||||
Vector_insertionSort(this->processes);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user