mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Fix the disabling of the material setting fields.
This was caused by using 2 different modelsItems.
This commit is contained in:
parent
399e6d31ae
commit
914d2e98e9
2 changed files with 6 additions and 1 deletions
|
@ -45,6 +45,11 @@ Item
|
||||||
materialListView.expandActiveMaterial(active_root_material_id)
|
materialListView.expandActiveMaterial(active_root_material_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setExpandedActiveMaterial(root_material_id)
|
||||||
|
{
|
||||||
|
materialListView.expandActiveMaterial(root_material_id)
|
||||||
|
}
|
||||||
|
|
||||||
// When loaded, try to select the active material in the tree
|
// When loaded, try to select the active material in the tree
|
||||||
Component.onCompleted: resetExpandedActiveMaterial()
|
Component.onCompleted: resetExpandedActiveMaterial()
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ Rectangle
|
||||||
{
|
{
|
||||||
materialList.currentBrand = material.brand
|
materialList.currentBrand = material.brand
|
||||||
materialList.currentType = material.brand + "_" + material.material
|
materialList.currentType = material.brand + "_" + material.material
|
||||||
base.currentItem = material
|
base.setExpandedActiveMaterial(material.root_material_id)
|
||||||
}
|
}
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onEntered: { materialSlot.hovered = true }
|
onEntered: { materialSlot.hovered = true }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue