Assembly: InsertLink: Use doc.Label instead of doc.Name because of bug of doc.Name not updating when file is saved.

This commit is contained in:
PaddleStroke
2024-06-17 09:08:10 +02:00
committed by Chris Hennes
parent 4454275146
commit 4a11652263

View File

@@ -151,7 +151,7 @@ class TaskAssemblyInsertLink(QtCore.QObject):
for doc in docList:
# Create a new tree item for the document
docItem = QtGui.QTreeWidgetItem()
docItem.setText(0, doc.Name + ".FCStd")
docItem.setText(0, doc.Label + ".FCStd")
docItem.setIcon(0, QIcon.fromTheme("add", QIcon(":/icons/Document.svg")))
if not any(