mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 02:49:03 +08:00
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:
parent
41e444714f
commit
b69f337ddb
@ -375,6 +375,10 @@ Cura.MachineAction
|
||||
}
|
||||
}
|
||||
currentIndex: machineExtruderCountProvider.properties.value - 1
|
||||
Component.onCompleted:
|
||||
{
|
||||
manager.setMachineExtruderCount(1);
|
||||
}
|
||||
onActivated:
|
||||
{
|
||||
manager.setMachineExtruderCount(index + 1);
|
||||
|
@ -22,5 +22,12 @@
|
||||
"7": "custom_extruder_8"
|
||||
},
|
||||
"first_start_actions": ["MachineSettingsAction"]
|
||||
},
|
||||
"overrides":
|
||||
{
|
||||
"machine_extruder_count":
|
||||
{
|
||||
"default_value": 8
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user