mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:59:01 +08:00
Try to make unavailable configuration warnings less confusing.
part of CURA-12368
This commit is contained in:
parent
038e8b7722
commit
669c28e618
@ -167,7 +167,7 @@ Button
|
|||||||
}
|
}
|
||||||
|
|
||||||
mismatchedCores = "<b>" + mismatchedCores + "</b>"
|
mismatchedCores = "<b>" + mismatchedCores + "</b>"
|
||||||
var draftResult = catalog.i18nc("@label", "This configuration is not available because %1 is either mismatched, or unrecognized. Please visit %2 to check with cores this printer-type supports.");
|
var draftResult = catalog.i18nc("@label", "This configuration is not available because there is a mismatch or other problem with core-type %1. Please visit %2 to check which cores this printer-type supports w.r.t. new slices.");
|
||||||
return draftResult.arg(mismatchedCores).arg("<a href=' '>" + catalog.i18nc("@label","WEBSITE") + "</a> ")
|
return draftResult.arg(mismatchedCores).arg("<a href=' '>" + catalog.i18nc("@label","WEBSITE") + "</a> ")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,7 +177,19 @@ Button
|
|||||||
{
|
{
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return isValidMaterial ? whenMismatchedCore() : whenUnknownMaterial()
|
|
||||||
|
var extruderConfigurations = configuration.extruderConfigurations
|
||||||
|
var perExtruder = []
|
||||||
|
for (var index in extruderConfigurations)
|
||||||
|
{
|
||||||
|
var matName = extruderConfigurations[index].material ? extruderConfigurations[index].material.name : ""
|
||||||
|
var coreName = extruderConfigurations[index].hotendID ? extruderConfigurations[index].hotendID : ""
|
||||||
|
perExtruder.push(` [${coreName}/${matName}]`)
|
||||||
|
}
|
||||||
|
|
||||||
|
var configsStr = "<i>" + perExtruder + "</i>"
|
||||||
|
var warnStr = isValidMaterial ? whenMismatchedCore() : whenUnknownMaterial()
|
||||||
|
return configsStr + "<br/>" + warnStr
|
||||||
}
|
}
|
||||||
width: extruderRow.width
|
width: extruderRow.width
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user