mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 14:43:15 +08:00
Show print weight with single decimal in the details view
Fixes #9176 CURA-7992
This commit is contained in:
parent
9197a1ca51
commit
464c19f592
@ -144,7 +144,7 @@ Column
|
|||||||
{
|
{
|
||||||
names.push(printMaterialNames[index])
|
names.push(printMaterialNames[index])
|
||||||
lengths.push(printMaterialLengths[index].toFixed(2))
|
lengths.push(printMaterialLengths[index].toFixed(2))
|
||||||
weights.push(String(Math.round(printMaterialWeights[index])))
|
weights.push(String(printMaterialWeights[index].toFixed(1)))
|
||||||
var cost = printMaterialCosts[index] == undefined ? 0 : printMaterialCosts[index].toFixed(2)
|
var cost = printMaterialCosts[index] == undefined ? 0 : printMaterialCosts[index].toFixed(2)
|
||||||
costs.push(cost)
|
costs.push(cost)
|
||||||
}
|
}
|
||||||
@ -153,7 +153,7 @@ Column
|
|||||||
if(lengths.length == 0)
|
if(lengths.length == 0)
|
||||||
{
|
{
|
||||||
lengths = ["0.00"]
|
lengths = ["0.00"]
|
||||||
weights = ["0"]
|
weights = ["0.0"]
|
||||||
costs = ["0.00"]
|
costs = ["0.00"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user