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,8 +549,11 @@ Item
enabled: true enabled: true
onClicked: { onClicked: {
// Restore to 90% only when enabling gradual infill
if (parseInt(infillSteps.properties.value) == 0) {
infillDensity.setPropertyValue("value", 90)
}
infillSteps.setPropertyValue("value", (parseInt(infillSteps.properties.value) == 0) ? 5 : 0) infillSteps.setPropertyValue("value", (parseInt(infillSteps.properties.value) == 0) ? 5 : 0)
infillDensity.setPropertyValue("value", 90)
} }
onEntered: { onEntered: {