mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
WIP: Fix NozzleMenu warning on non-notifiable bindings
This commit is contained in:
parent
1e0a078af8
commit
4468f4d620
2 changed files with 17 additions and 2 deletions
|
@ -19,6 +19,16 @@ Menu
|
|||
id: nozzleModel
|
||||
}
|
||||
|
||||
property var extruderStack: Cura.MachineManager.getExtruder(extruderIndex)
|
||||
|
||||
Connections
|
||||
{
|
||||
target: Cura.MachineManager
|
||||
onGlobalContainerChanged: {
|
||||
menu.extruderStack = Cura.MachineManager.getExtruder(extruderIndex)
|
||||
}
|
||||
}
|
||||
|
||||
Instantiator
|
||||
{
|
||||
model: nozzleModel
|
||||
|
@ -27,7 +37,7 @@ Menu
|
|||
{
|
||||
text: model.hotend_name
|
||||
checkable: true
|
||||
checked: Cura.MachineManager.activeMachine.extruders[extruderIndex].variant.name == model.hotend_name
|
||||
checked: extruderStack.variant.name == model.hotend_name
|
||||
exclusiveGroup: group
|
||||
onTriggered: {
|
||||
Cura.MachineManager.setVariantGroup(extruderIndex, model.container_node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue