mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07:00
Don't change the model depending on isValidMaterial
That would cause a circular dependency in a way. Contributes to issue CURA-6033.
This commit is contained in:
parent
e8ea742cf6
commit
5e98544541
1 changed files with 2 additions and 8 deletions
|
|
@ -62,19 +62,13 @@ Button
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
id: repeater
|
id: repeater
|
||||||
model:
|
model: configuration.extruderConfigurations
|
||||||
{
|
|
||||||
if (configurationItem.isValidMaterial)
|
|
||||||
{
|
|
||||||
return configuration.extruderConfigurations
|
|
||||||
}
|
|
||||||
return []
|
|
||||||
}
|
|
||||||
|
|
||||||
delegate: PrintCoreConfiguration
|
delegate: PrintCoreConfiguration
|
||||||
{
|
{
|
||||||
width: Math.round(parent.width / 2)
|
width: Math.round(parent.width / 2)
|
||||||
printCoreConfiguration: modelData
|
printCoreConfiguration: modelData
|
||||||
|
visible: configurationItem.isValidMaterial
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue