Keep custom infill density value when disabling gradual infill - CURA-4397

This commit is contained in:
Diego Prado Gesto 2017-10-05 09:08:52 +02:00
parent e8925443a0
commit 30be02be14

View File

@ -549,9 +549,12 @@ Item
enabled: true enabled: true
onClicked: { onClicked: {
infillSteps.setPropertyValue("value", (parseInt(infillSteps.properties.value) == 0) ? 5 : 0) // Restore to 90% only when enabling gradual infill
if (parseInt(infillSteps.properties.value) == 0) {
infillDensity.setPropertyValue("value", 90) infillDensity.setPropertyValue("value", 90)
} }
infillSteps.setPropertyValue("value", (parseInt(infillSteps.properties.value) == 0) ? 5 : 0)
}
onEntered: { onEntered: {
base.showTooltip(enableGradualInfillCheckBox, Qt.point(-infillCellRight.x, 0), base.showTooltip(enableGradualInfillCheckBox, Qt.point(-infillCellRight.x, 0),