BIM: Fixed case bug in library tool

This commit is contained in:
Yorik van Havre
2024-11-04 14:48:14 +01:00
committed by Yorik van Havre
parent 25b4e319eb
commit 815375a4a0
+2 -2
View File
@@ -388,9 +388,9 @@ class BIM_Library_TaskPanel:
it = QtGui.QStandardItem(f)
it.setToolTip(os.path.join(dp, f))
self.filemodel.appendRow(it)
if f.endswith(".fcstd"):
if f.lower().endswith(".fcstd"):
it.setIcon(QtGui.QIcon(":icons/freecad-doc.png"))
elif f.endswith(".ifc"):
elif f.lower().endswith(".ifc"):
it.setIcon(QtGui.QIcon(":/icons/IFC.svg"))
else:
it.setIcon(QtGui.QIcon(":/icons/Part_document.svg"))