mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add empty file if none of files in root match host's criteria
This commit is contained in:
parent
709ef29c03
commit
2b5e55b35a
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ class FilesModel(TreeModel):
|
|||
"filename": "No files found.",
|
||||
# Not-selectable
|
||||
"enabled": False,
|
||||
"date": None,
|
||||
"filepath": None
|
||||
})
|
||||
|
||||
|
|
@ -90,6 +91,9 @@ class FilesModel(TreeModel):
|
|||
|
||||
self.add_child(item)
|
||||
|
||||
if self.rowCount() == 0:
|
||||
self._add_empty()
|
||||
|
||||
self.endResetModel()
|
||||
|
||||
def data(self, index, role):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue