mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Reuse MaterialBrandSection component for Favorites, Generic and branded
materials. This component will show different children depending on the hasMaterialTypes flag. Adjust some small UI issues. Contributes to CURA-5682.
This commit is contained in:
parent
f871a89825
commit
bafc2b98c9
6 changed files with 61 additions and 148 deletions
|
|
@ -18,8 +18,11 @@ Item
|
|||
onCurrentItemChanged:
|
||||
{
|
||||
// When the current item changes, the detail view needs to be updated
|
||||
updateMaterialPropertiesObject()
|
||||
materialDetailsView.currentMaterialNode = currentItem.container_node
|
||||
if (currentItem != null)
|
||||
{
|
||||
updateMaterialPropertiesObject()
|
||||
materialDetailsView.currentMaterialNode = currentItem.container_node
|
||||
}
|
||||
}
|
||||
|
||||
function updateMaterialPropertiesObject()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue