Fix infillOnlyCheckbox not representing mesh type

Not a bug but a feature: When the overlays button is clicked, the infill
mesh type is set and the checkbox checked

CURA-6683
This commit is contained in:
Nino van Hooff 2019-09-13 13:36:30 +02:00
parent 44fbcaeb3a
commit d6872a65bd

View file

@ -41,13 +41,10 @@ Item
}
function setMeshType(type){
print("setting mesh type to " + type)
UM.ActiveTool.setProperty("MeshType", type)
}
function updateView(type) {
print("updating view for type " + type)
// set checked state of mesh type buttons
normalButton.checked = type === normal_mesh_type
supportMeshButton.checked = type === support_mesh_type
@ -146,9 +143,14 @@ Item
style: UM.Theme.styles.checkbox;
checked: current_mesh_type === infill_mesh_type
visible: current_mesh_type === infill_mesh_type || current_mesh_type === cutting_mesh_type
onClicked: setOverhangsMeshType()
Binding {
target: infillOnlyCheckbox
property: "checked"
value: current_mesh_type === infill_mesh_type
}
}
Column // Settings Dialog