mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Add stub (invisible) menuitems to get material/nozzle from printer
In preparation to stringfreeze. CURA-2276
This commit is contained in:
parent
e583425bfa
commit
2bd53d4ce4
2 changed files with 24 additions and 0 deletions
|
@ -12,6 +12,18 @@ Menu
|
||||||
id: menu
|
id: menu
|
||||||
title: "Material"
|
title: "Material"
|
||||||
|
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
id: automaticMaterial
|
||||||
|
text: catalog.i18nc("@title:menuitem %1 is the value from the printer", "Automatic: %1").arg("[material_name]")
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
|
MenuSeparator
|
||||||
|
{
|
||||||
|
visible: automaticMaterial.visible
|
||||||
|
}
|
||||||
|
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
model: genericMaterialsModel
|
model: genericMaterialsModel
|
||||||
|
|
|
@ -12,6 +12,18 @@ Menu
|
||||||
id: menu
|
id: menu
|
||||||
title: "Nozzle"
|
title: "Nozzle"
|
||||||
|
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
id: automaticNozzle
|
||||||
|
text: catalog.i18nc("@title:menuitem %1 is the value from the printer", "Automatic: %1").arg("[nozzle_name]")
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
|
MenuSeparator
|
||||||
|
{
|
||||||
|
visible: automaticNozzle.visible
|
||||||
|
}
|
||||||
|
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
model: UM.InstanceContainersModel
|
model: UM.InstanceContainersModel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue