mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 09:59:01 +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)
|
||||
}
|
||||
|
||||
function setExpandedActiveMaterial(root_material_id)
|
||||
{
|
||||
materialListView.expandActiveMaterial(root_material_id)
|
||||
}
|
||||
|
||||
// When loaded, try to select the active material in the tree
|
||||
Component.onCompleted: resetExpandedActiveMaterial()
|
||||
|
||||
|
@ -60,7 +60,7 @@ Rectangle
|
||||
{
|
||||
materialList.currentBrand = material.brand
|
||||
materialList.currentType = material.brand + "_" + material.material
|
||||
base.currentItem = material
|
||||
base.setExpandedActiveMaterial(material.root_material_id)
|
||||
}
|
||||
hoverEnabled: true
|
||||
onEntered: { materialSlot.hovered = true }
|
||||
|
Loading…
x
Reference in New Issue
Block a user