mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07:00
Hide nozzle size setting for machines that use variants for nozzle sizes
This commit is contained in:
parent
b6689870f5
commit
5f147b6c78
1 changed files with 3 additions and 0 deletions
|
|
@ -273,17 +273,20 @@ Cura.MachineAction
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Nozzle size")
|
text: catalog.i18nc("@label", "Nozzle size")
|
||||||
|
visible: !Cura.MachineManager.hasVariants
|
||||||
}
|
}
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
id: nozzleSizeField
|
id: nozzleSizeField
|
||||||
text: machineNozzleSizeProvider.properties.value
|
text: machineNozzleSizeProvider.properties.value
|
||||||
|
visible: !Cura.MachineManager.hasVariants
|
||||||
validator: RegExpValidator { regExp: /[0-9\.]{0,6}/ }
|
validator: RegExpValidator { regExp: /[0-9\.]{0,6}/ }
|
||||||
onEditingFinished: { machineNozzleSizeProvider.setPropertyValue("value", text) }
|
onEditingFinished: { machineNozzleSizeProvider.setPropertyValue("value", text) }
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "mm")
|
text: catalog.i18nc("@label", "mm")
|
||||||
|
visible: !Cura.MachineManager.hasVariants
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue