Materials: Correct installation paths

Correct the installation paths affecting builds on various systems
while still maintaining the old material editor required for
backwards compatibility
This commit is contained in:
David Carter
2024-09-05 22:10:28 -04:00
committed by Chris Hennes
parent a35ba33433
commit b9475fc74c
2 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ class MaterialEditor:
self.iconPath = (filePath + "Resources" + os.sep + "icons" + os.sep)
# load the UI file from the same directory as this script
self.widget = FreeCADGui.PySideUic.loadUi(filePath + "Resources" + os.sep + "ui" + os.sep + "materials-editor.ui")
self.widget = FreeCADGui.PySideUic.loadUi(":/ui/materials-editor.ui")
# remove unused Help button
self.widget.setWindowFlags(self.widget.windowFlags()
& ~QtCore.Qt.WindowContextHelpButtonHint)