mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 05:11:04 -07:00
Reduce the creations of ExtrudersModels
CURA-6015
This commit is contained in:
parent
2cf80b4578
commit
620790ae3d
15 changed files with 44 additions and 34 deletions
|
|
@ -17,10 +17,12 @@ SettingItem
|
|||
id: control
|
||||
anchors.fill: parent
|
||||
|
||||
model: Cura.ExtrudersModel
|
||||
model: CuraApplication.getExtrudersModelWithOptional()
|
||||
|
||||
Connections
|
||||
{
|
||||
onModelChanged: control.color = getItem(control.currentIndex).color
|
||||
addOptionalExtruder: true
|
||||
target: model
|
||||
onModelChanged: control.color = model.getItem(control.currentIndex).color
|
||||
}
|
||||
|
||||
textRole: "name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue