diff options
author | Sergios - Anestis Kefalidis <sergioskefalidis@gmail.com> | 2021-10-11 22:37:43 +0300 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2021-10-11 20:14:43 +0000 |
commit | e5462f9813c41f3c3368ec521c6eb725fa219b77 (patch) | |
tree | 11da2fc4438eef549eaf6181102512f4fd9aa852 /thunar | |
parent | 6970d5711cf4c871636e9f5f01bbcaa059035bdc (diff) | |
download | thunar-e5462f9813c41f3c3368ec521c6eb725fa219b77.tar.gz |
Fix: Side pane tree view loading time increased (Issue #659)
MR !168
Issue #659
Diffstat (limited to 'thunar')
-rw-r--r-- | thunar/thunar-tree-model.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/thunar/thunar-tree-model.c b/thunar/thunar-tree-model.c index abf85af8..b961eac2 100644 --- a/thunar/thunar-tree-model.c +++ b/thunar/thunar-tree-model.c @@ -804,6 +804,10 @@ thunar_tree_model_ref_node (GtkTreeModel *tree_model, } else { + /* do not load `Recent` to avoid slowing down the view */ + if (item->file != NULL && thunar_file_is_recent (item->file)) + return; + /* schedule a reload of the folder if it is cleaned earlier */ if (G_UNLIKELY (item->ref_count == 0)) thunar_tree_model_item_load_folder (item); |