[Material] remove unused Help button in editor dialog

This commit is contained in:
Uwe
2023-02-24 00:52:42 +01:00
parent a8a646f165
commit bb6b1979f6

View File

@@ -63,6 +63,9 @@ class MaterialEditor:
# load the UI file from the same directory as this script
self.widget = FreeCADGui.PySideUic.loadUi(filePath + "materials-editor.ui")
# remove unused Help button
self.widget.setWindowFlags(self.widget.windowFlags()
& ~QtCore.Qt.WindowContextHelpButtonHint)
# restore size and position
param = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Material")