Reduce the list of tag classes in outline view when they are not used

This commit is contained in:
Veronica Berglyd Olsen
2022-05-22 21:00:49 +02:00
parent eb66b2c175
commit 1f66ed3e3b
5 changed files with 58 additions and 4 deletions
+8
View File
@@ -265,6 +265,14 @@ class NWTree():
# Tree Root Methods
##
def rootClasses(self):
"""Return a set of all root classes in use by the project.
"""
rootClasses = set()
for nwItem in self._treeRoots.values():
rootClasses.add(nwItem.itemClass)
return rootClasses
def isRoot(self, tHandle):
"""Check if a handle is a root item.
"""