mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
2 changed files with 11 additions and 0 deletions
|
|
@ -375,6 +375,10 @@ Cura.MachineAction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
currentIndex: machineExtruderCountProvider.properties.value - 1
|
currentIndex: machineExtruderCountProvider.properties.value - 1
|
||||||
|
Component.onCompleted:
|
||||||
|
{
|
||||||
|
manager.setMachineExtruderCount(1);
|
||||||
|
}
|
||||||
onActivated:
|
onActivated:
|
||||||
{
|
{
|
||||||
manager.setMachineExtruderCount(index + 1);
|
manager.setMachineExtruderCount(index + 1);
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,12 @@
|
||||||
"7": "custom_extruder_8"
|
"7": "custom_extruder_8"
|
||||||
},
|
},
|
||||||
"first_start_actions": ["MachineSettingsAction"]
|
"first_start_actions": ["MachineSettingsAction"]
|
||||||
|
},
|
||||||
|
"overrides":
|
||||||
|
{
|
||||||
|
"machine_extruder_count":
|
||||||
|
{
|
||||||
|
"default_value": 8
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue