Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/tk_multi_loader/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,7 @@ def _setup_query_model(self, app, setting_dict):
setting_dict["filters"],
setting_dict["hierarchy"],
self._task_manager,
setting_dict.get("disable_folder_thumbnails"),
)

# Create a proxy model.
Expand Down
14 changes: 13 additions & 1 deletion python/tk_multi_loader/model_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ class SgEntityModel(ShotgunModel):
on the left hand side.
"""

def __init__(self, parent, entity_type, filters, hierarchy, bg_task_manager):
def __init__(
self,
parent,
entity_type,
filters,
hierarchy,
bg_task_manager,
disable_folder_thumbnails=False,
):
"""
Constructor
"""
Expand Down Expand Up @@ -76,6 +84,10 @@ def __init__(self, parent, entity_type, filters, hierarchy, bg_task_manager):
bg_task_manager=bg_task_manager,
)
fields = ["image", "sg_status_list", "description"]

# To significantly speed up the query, conditionally remove the 'image' field
if disable_folder_thumbnails:
fields.remove("image")
self._load_data(entity_type, filters, hierarchy, fields)

############################################################################################
Expand Down