mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added has_filenames method
This commit is contained in:
parent
d58853f1cb
commit
7b40e9e23e
1 changed files with 6 additions and 0 deletions
|
|
@ -96,6 +96,12 @@ class FilesModel(TreeModel):
|
|||
|
||||
self.endResetModel()
|
||||
|
||||
def has_filenames(self):
|
||||
for item in self._root_item.children():
|
||||
if item.get("enabled", True):
|
||||
return True
|
||||
return False
|
||||
|
||||
def rowCount(self, parent=None):
|
||||
if parent is None or not parent.isValid():
|
||||
parent_item = self._root_item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue