mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 02:49:03 +08:00
Update to a better logic
Also allow for extraction for PO files
This commit is contained in:
parent
c036576116
commit
f5efb60b71
@ -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…
x
Reference in New Issue
Block a user