Disable "Print Settings" fields for read-only materials

This commit is contained in:
fieldOfView 2022-05-06 13:11:49 +02:00
parent eae5f4d57a
commit 8aa08944f2
2 changed files with 2 additions and 0 deletions

View file

@ -38,6 +38,7 @@ UM.TooltipArea
property alias textField: textFieldWithUnit
property alias valueText: textFieldWithUnit.text
property alias enabled: textFieldWithUnit.enabled
property alias editingFinishedFunction: textFieldWithUnit.editingFinishedFunction
property string tooltipText: propertyProvider.properties.description ? propertyProvider.properties.description : ""

View file

@ -601,6 +601,7 @@ Item
maximum: 99999
unitText: model.unit
decimals: model.unit == "mm" ? 2 : 0
enabled: base.editingEnabled
editingFinishedFunction: materialPropertyProvider.setPropertyValue("value", value)
}