mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Only display buildplate for glass buildplates
CURA-9622
This commit is contained in:
parent
093fa44f9c
commit
f6442d1950
2 changed files with 16 additions and 2 deletions
|
@ -172,7 +172,14 @@ Item
|
||||||
{
|
{
|
||||||
id: printerConfiguration
|
id: printerConfiguration
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
buildplate: catalog.i18nc("@label", "Glass")
|
buildplate: {
|
||||||
|
switch (printJob.assignedPrinter.buildplate) {
|
||||||
|
case "glass":
|
||||||
|
return catalog.i18nc("@label", "Glass");
|
||||||
|
default:
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
}
|
||||||
configurations: base.printJob ? base.printJob.configuration.extruderConfigurations : null
|
configurations: base.printJob ? base.printJob.configuration.extruderConfigurations : null
|
||||||
height: Math.round(72 * screenScaleFactor) // TODO: Theme!
|
height: Math.round(72 * screenScaleFactor) // TODO: Theme!
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,7 +175,14 @@ Item
|
||||||
{
|
{
|
||||||
id: printerConfiguration
|
id: printerConfiguration
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
buildplate: printer ? catalog.i18nc("@label", "Glass") : null // 'Glass' as a default
|
buildplate: {
|
||||||
|
switch (printer.buildplate) {
|
||||||
|
case "glass":
|
||||||
|
return catalog.i18nc("@label", "Glass");
|
||||||
|
default:
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
}
|
||||||
configurations:
|
configurations:
|
||||||
{
|
{
|
||||||
var configs = []
|
var configs = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue