mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 15:25:09 -06:00
Show true extrudernames in Simple Mode support extruder selection combobox
CURA-333
This commit is contained in:
parent
eba2451cf2
commit
92905ada34
2 changed files with 14 additions and 7 deletions
|
@ -319,11 +319,13 @@ Item
|
|||
id: extruderModel
|
||||
Component.onCompleted: populateExtruderModel()
|
||||
}
|
||||
Connections
|
||||
|
||||
//: Invisible list used to populate the extrudelModel
|
||||
ListView
|
||||
{
|
||||
id: machineChange
|
||||
target: Cura.MachineManager
|
||||
onGlobalContainerChanged: populateExtruderModel()
|
||||
id: extruders
|
||||
model: Cura.ExtrudersModel { onModelChanged: populateExtruderModel() }
|
||||
visible: false
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -331,11 +333,13 @@ Item
|
|||
{
|
||||
extruderModel.clear();
|
||||
extruderModel.append({
|
||||
text: catalog.i18nc("@label", "Don't print support")
|
||||
text: catalog.i18nc("@label", "Don't print support"),
|
||||
color: ""
|
||||
})
|
||||
for(var extruder = 0; extruder < machineExtruderCount.properties.value ; extruder++) {
|
||||
for(var extruderNr = 0; extruderNr < extruders.model.rowCount() ; extruderNr++) {
|
||||
extruderModel.append({
|
||||
text: catalog.i18nc("@label", "Print using Extruder %1").arg(extruder + 1)
|
||||
text: catalog.i18nc("@label", "Print using %1").arg(extruders.model.getItem(extruderNr).name),
|
||||
color: extruders.model.getItem(extruderNr).colour
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue