mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:05:57 +08:00
Hide gradual infill checkbox if the gradual infill steps setting is disabled
This commit is contained in:
parent
aa93c67a94
commit
0b03681890
@ -360,7 +360,7 @@ Item
|
|||||||
{
|
{
|
||||||
id: infillCellRight
|
id: infillCellRight
|
||||||
|
|
||||||
height: infillSlider.height + enableGradualInfillCheckBox.height + (UM.Theme.getSize("sidebar_margin").height * 2)
|
height: infillSlider.height + UM.Theme.getSize("sidebar_margin").height + enableGradualInfillCheckBox.visible * (enableGradualInfillCheckBox.height + UM.Theme.getSize("sidebar_margin").height)
|
||||||
width: UM.Theme.getSize("sidebar").width * .55
|
width: UM.Theme.getSize("sidebar").width * .55
|
||||||
|
|
||||||
anchors.left: infillCellLeft.right
|
anchors.left: infillCellLeft.right
|
||||||
@ -510,6 +510,7 @@ Item
|
|||||||
|
|
||||||
style: UM.Theme.styles.checkbox
|
style: UM.Theme.styles.checkbox
|
||||||
enabled: base.settingsEnabled
|
enabled: base.settingsEnabled
|
||||||
|
visible: infillSteps.properties.enabled == "True"
|
||||||
checked: parseInt(infillSteps.properties.value) > 0
|
checked: parseInt(infillSteps.properties.value) > 0
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
@ -849,7 +850,7 @@ Item
|
|||||||
id: infillSteps
|
id: infillSteps
|
||||||
containerStackId: Cura.MachineManager.activeStackId
|
containerStackId: Cura.MachineManager.activeStackId
|
||||||
key: "gradual_infill_steps"
|
key: "gradual_infill_steps"
|
||||||
watchedProperties: ["value"]
|
watchedProperties: ["value", "enabled"]
|
||||||
storeIndex: 0
|
storeIndex: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user