Skip to content

Commit deb05fe

Browse files
tanriolBenBE
authored andcommitted
ProcessList: delay tree rebuild until panel rebuild
1 parent 82d34de commit deb05fe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ProcessList.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,4 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
492492

493493
// Set UID column width based on max UID.
494494
Process_setUidColumnWidth(maxUid);
495-
496-
if (this->settings->ss->treeView)
497-
ProcessList_buildTree(this);
498495
}

ProcessList.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ typedef struct ProcessList_ {
4444
const Settings* settings;
4545

4646
Vector* processes; /* all known processes; sort order can vary and differ from display order */
47-
Vector* displayList; /* process tree flattened in display order (borrowed) */
47+
Vector* displayList; /* process tree flattened in display order (borrowed);
48+
updated in ProcessList_updateDisplayList when rebuilding panel */
4849
Hashtable* processTable; /* fast known process lookup by PID */
4950
UsersTable* usersTable;
5051

0 commit comments

Comments
 (0)