Let the settingsMenu use the extruders of the active machine instead of the extruderModel

The extruder model gets updated way to much (for all material changes) but we only need the
number and names of the extruders, since the other menu's do this by themselves
This commit is contained in:
Jaime van Kessel 2018-12-11 09:24:22 +01:00
parent 3132b1f689
commit 909f36d28e
2 changed files with 16 additions and 5 deletions

View file

@ -16,10 +16,11 @@ Menu
Instantiator
{
model: Cura.ExtrudersModel { simpleNames: true }
model: Cura.MachineManager.activeMachine.extruderList
Menu
{
title: model.name
title: modelData.name
NozzleMenu { title: Cura.MachineManager.activeDefinitionVariantsName; visible: Cura.MachineManager.hasVariants; extruderIndex: index }
MaterialMenu { title: catalog.i18nc("@title:menu", "&Material"); visible: Cura.MachineManager.hasMaterials; extruderIndex: index }