mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:26:05 +08:00
Merge branch '4.2' of github.com:Ultimaker/Cura
This commit is contained in:
commit
fe2412f3a7
@ -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…
x
Reference in New Issue
Block a user