mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix default output of folder type items
This commit is contained in:
parent
3de2d65c5b
commit
04e257a29e
1 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,7 @@ class FoldersQtModel(QtGui.QStandardItemModel):
|
|||
folder_items = self._controller.get_folder_items(
|
||||
project_name, FOLDERS_MODEL_SENDER_NAME
|
||||
)
|
||||
folder_type_items = {}
|
||||
folder_type_items = []
|
||||
if hasattr(self._controller, "get_folder_type_items"):
|
||||
folder_type_items = self._controller.get_folder_type_items(
|
||||
project_name, FOLDERS_MODEL_SENDER_NAME
|
||||
|
|
@ -194,7 +194,7 @@ class FoldersQtModel(QtGui.QStandardItemModel):
|
|||
return
|
||||
if thread.failed:
|
||||
# TODO visualize that refresh failed
|
||||
folder_items, folder_type_items = {}, {}
|
||||
folder_items, folder_type_items = {}, []
|
||||
else:
|
||||
folder_items, folder_type_items = thread.get_result()
|
||||
self._fill_items(folder_items, folder_type_items)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue