mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Update to a better logic
Also allow for extraction for PO files
This commit is contained in:
parent
c036576116
commit
f5efb60b71
1 changed files with 13 additions and 1 deletions
|
@ -281,9 +281,21 @@ Item
|
|||
|
||||
UM.Label
|
||||
{
|
||||
text: catalog.i18nc("@label", Cura.MachineManager.activeDefinitionVariantsName)
|
||||
text: getDefinitionVariantLabel(Cura.MachineManager.activeDefinitionVariantsName)
|
||||
height: parent.height
|
||||
width: selectors.textWidth
|
||||
|
||||
function getDefinitionVariantLabel(name) {
|
||||
if (name === "Nozzle Size" || name === "Nozzle size") {
|
||||
return catalog.i18nc("@label", "Nozzle Size");
|
||||
} else if (name === "Print Core" || name === "Print core") {
|
||||
return catalog.i18nc("@label", "Print Core");
|
||||
} else if (name === "Extruder") {
|
||||
return catalog.i18nc("@label", "Extruder");
|
||||
} else {
|
||||
return ""; // Or a default label if needed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Cura.PrintSetupHeaderButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue