summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Lisov <dennis.lissov@gmail.com>2021-12-19 14:07:55 +0300
committerBenBE <BenBE@geshi.org>2022-02-13 19:50:16 +0100
commitdeb05fe7c2dae62acc447d568e6521859f40db6f (patch)
tree170559ccc79d7875940bfcc07f124bd2399da507
parent82d34deaf14e8f44ba6623bc5ca5cc41a7d9012b (diff)
ProcessList: delay tree rebuild until panel rebuild
-rw-r--r--ProcessList.c3
-rw-r--r--ProcessList.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 186e1edc..e86f6ea4 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -492,7 +492,4 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
// Set UID column width based on max UID.
Process_setUidColumnWidth(maxUid);
-
- if (this->settings->ss->treeView)
- ProcessList_buildTree(this);
}
diff --git a/ProcessList.h b/ProcessList.h
index 96924947..c4200380 100644
--- a/ProcessList.h
+++ b/ProcessList.h
@@ -44,7 +44,8 @@ typedef struct ProcessList_ {
const Settings* settings;
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 */
UsersTable* usersTable;

© 2014-2024 Faster IT GmbH | imprint | privacy policy