mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Keep custom infill density value when disabling gradual infill - CURA-4397
This commit is contained in:
parent
e8925443a0
commit
30be02be14
1 changed files with 4 additions and 1 deletions
|
@ -549,9 +549,12 @@ Item
|
|||
enabled: true
|
||||
|
||||
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)
|
||||
}
|
||||
infillSteps.setPropertyValue("value", (parseInt(infillSteps.properties.value) == 0) ? 5 : 0)
|
||||
}
|
||||
|
||||
onEntered: {
|
||||
base.showTooltip(enableGradualInfillCheckBox, Qt.point(-infillCellRight.x, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue