mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
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:
parent
44fbcaeb3a
commit
d6872a65bd
1 changed files with 6 additions and 4 deletions
|
@ -41,13 +41,10 @@ Item
|
||||||
}
|
}
|
||||||
|
|
||||||
function setMeshType(type){
|
function setMeshType(type){
|
||||||
print("setting mesh type to " + type)
|
|
||||||
UM.ActiveTool.setProperty("MeshType", type)
|
UM.ActiveTool.setProperty("MeshType", type)
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateView(type) {
|
function updateView(type) {
|
||||||
print("updating view for type " + type)
|
|
||||||
|
|
||||||
// set checked state of mesh type buttons
|
// set checked state of mesh type buttons
|
||||||
normalButton.checked = type === normal_mesh_type
|
normalButton.checked = type === normal_mesh_type
|
||||||
supportMeshButton.checked = type === support_mesh_type
|
supportMeshButton.checked = type === support_mesh_type
|
||||||
|
@ -146,9 +143,14 @@ Item
|
||||||
|
|
||||||
style: UM.Theme.styles.checkbox;
|
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
|
visible: current_mesh_type === infill_mesh_type || current_mesh_type === cutting_mesh_type
|
||||||
onClicked: setOverhangsMeshType()
|
onClicked: setOverhangsMeshType()
|
||||||
|
|
||||||
|
Binding {
|
||||||
|
target: infillOnlyCheckbox
|
||||||
|
property: "checked"
|
||||||
|
value: current_mesh_type === infill_mesh_type
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Column // Settings Dialog
|
Column // Settings Dialog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue