ProcessList: delay tree rebuild until panel rebuild

This commit is contained in:
Denis Lisov 2021-12-19 14:07:55 +03:00 committed by BenBE
parent 82d34deaf1
commit deb05fe7c2
2 changed files with 2 additions and 4 deletions

View File

@ -492,7 +492,4 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
// Set UID column width based on max UID. // Set UID column width based on max UID.
Process_setUidColumnWidth(maxUid); Process_setUidColumnWidth(maxUid);
if (this->settings->ss->treeView)
ProcessList_buildTree(this);
} }

View File

@ -44,7 +44,8 @@ typedef struct ProcessList_ {
const Settings* settings; const Settings* settings;
Vector* processes; /* all known processes; sort order can vary and differ from display order */ Vector* processes; /* all known processes; sort order can vary and differ from display order */
Vector* displayList; /* process tree flattened in display order (borrowed) */ Vector* displayList; /* process tree flattened in display order (borrowed);
updated in ProcessList_updateDisplayList when rebuilding panel */
Hashtable* processTable; /* fast known process lookup by PID */ Hashtable* processTable; /* fast known process lookup by PID */
UsersTable* usersTable; UsersTable* usersTable;