mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -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
|
||||
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
|
||||
{
|
||||
model: genericMaterialsModel
|
||||
|
|
|
@ -12,6 +12,18 @@ Menu
|
|||
id: menu
|
||||
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
|
||||
{
|
||||
model: UM.InstanceContainersModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue