Added array ports and junctions
This commit is contained in:
@@ -86,7 +86,9 @@ class DocumentTreeModel(LibraryTreeModel):
|
||||
self.clear()
|
||||
self.setHorizontalHeaderLabels(["Document"])
|
||||
if self.controller.document is not None:
|
||||
current_root = QStandardItem("Current Document")
|
||||
current_root = QStandardItem(
|
||||
str(self.controller.document.metadata.get("name") or "Current Document")
|
||||
)
|
||||
current_root.setDragEnabled(False)
|
||||
current_root.setData("current-document", ITEM_KIND_ROLE)
|
||||
for component in self.controller.document.roots.values():
|
||||
|
||||
Reference in New Issue
Block a user