Avoid expensive build of tree when not using it

main
Benny Baumann 5 years ago committed by BenBE
parent bd24664fc2
commit 2d874177bc
  1. 2
      ProcessList.c

@ -564,6 +564,7 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
} }
} }
if (this->settings->treeView) {
// Clear out the hashtable to avoid any left-over processes from previous build // Clear out the hashtable to avoid any left-over processes from previous build
// //
// The sorting algorithm relies on the fact that // The sorting algorithm relies on the fact that
@ -572,3 +573,4 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
ProcessList_buildTree(this); ProcessList_buildTree(this);
} }
}

Loading…
Cancel
Save