mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:09:00 +08: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
@ -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…
x
Reference in New Issue
Block a user