mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:49:01 +08:00
Fix ordering of material menu selection
CURA-8683
This commit is contained in:
parent
babf3043f8
commit
4db8878317
@ -66,11 +66,11 @@ Cura.Menu
|
|||||||
checked: model.root_material_id === materialMenu.currentRootMaterialId
|
checked: model.root_material_id === materialMenu.currentRootMaterialId
|
||||||
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
||||||
}
|
}
|
||||||
onObjectAdded: materialMenu.insertItem(index, object)
|
onObjectAdded: materialMenu.insertItem(index + 1, object)
|
||||||
onObjectRemoved: materialMenu.removeItem(index)
|
onObjectRemoved: materialMenu.removeItem(index)
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuSeparator {}
|
Cura.MenuSeparator { visible: favoriteMaterialsModel.items.length > 0}
|
||||||
|
|
||||||
Menu
|
Menu
|
||||||
{
|
{
|
||||||
@ -135,7 +135,7 @@ Cura.Menu
|
|||||||
onObjectRemoved: brandMenu.removeMenu(object)
|
onObjectRemoved: brandMenu.removeMenu(object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onObjectAdded: materialMenu.insertMenu(index, object)
|
onObjectAdded: materialMenu.insertMenu(index + 4, object)
|
||||||
onObjectRemoved: materialMenu.removeMenu(object)
|
onObjectRemoved: materialMenu.removeMenu(object)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user