mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
Also refactored name of printlength in jobspecs.qml
CURA-1836
This commit is contained in:
parent
d46eafa968
commit
dcc3bc8f80
@ -24,7 +24,8 @@ Rectangle {
|
|||||||
UM.I18nCatalog { id: catalog; name:"cura"}
|
UM.I18nCatalog { id: catalog; name:"cura"}
|
||||||
|
|
||||||
property variant printDuration: PrintInformation.currentPrintTime
|
property variant printDuration: PrintInformation.currentPrintTime
|
||||||
property variant printMaterialAmounts: PrintInformation.materialLengths
|
property variant printMaterialLengths: PrintInformation.materialLengths
|
||||||
|
property variant printMaterialWeights: PrintInformation.materialWeights
|
||||||
|
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
@ -195,9 +196,9 @@ Rectangle {
|
|||||||
text:
|
text:
|
||||||
{
|
{
|
||||||
var amounts = [];
|
var amounts = [];
|
||||||
if(base.printMaterialAmounts) {
|
if(base.printMaterialLengths) {
|
||||||
for(var index = 0; index < base.printMaterialAmounts.length; index++) {
|
for(var index = 0; index < base.printMaterialLengths.length; index++) {
|
||||||
amounts.push(base.printMaterialAmounts[index].toFixed(2));
|
amounts.push(base.printMaterialLengths[index].toFixed(2));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
amounts = ["0.00"];
|
amounts = ["0.00"];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user