Set machine_extruder_count in sync with defined extruders

The registry checks if they are in sync and complains if they aren't. The extruder count is set back to default to 1 upon adding the machine.

Contributes to issue CURA-3497.
This commit is contained in:
Ghostkeeper 2017-05-03 17:01:08 +02:00
parent 41e444714f
commit b69f337ddb
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
2 changed files with 11 additions and 0 deletions

View file

@ -375,6 +375,10 @@ Cura.MachineAction
}
}
currentIndex: machineExtruderCountProvider.properties.value - 1
Component.onCompleted:
{
manager.setMachineExtruderCount(1);
}
onActivated:
{
manager.setMachineExtruderCount(index + 1);