mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 06:11:09 -07:00
CURA-4881 Remove the automatic option for buildplates
This commit is contained in:
parent
e227ab5a23
commit
3981b717a8
1 changed files with 0 additions and 45 deletions
|
|
@ -12,51 +12,6 @@ Menu
|
||||||
id: menu
|
id: menu
|
||||||
title: "Build plate"
|
title: "Build plate"
|
||||||
|
|
||||||
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
|
||||||
property bool isClusterPrinter:
|
|
||||||
{
|
|
||||||
if(Cura.MachineManager.printerOutputDevices.length == 0)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var clusterSize = Cura.MachineManager.printerOutputDevices[0].clusterSize;
|
|
||||||
// This is not a cluster printer or the cluster it is just one printer
|
|
||||||
if(clusterSize == undefined || clusterSize == 1)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
MenuItem
|
|
||||||
{
|
|
||||||
id: automaticBuildplate
|
|
||||||
text:
|
|
||||||
{
|
|
||||||
if (visible)
|
|
||||||
{
|
|
||||||
var buildplateName = Cura.MachineManager.printerOutputDevices[0].buildplateId
|
|
||||||
return catalog.i18nc("@title:menuitem %1 is the buildplate currently loaded in the printer", "Automatic: %1").arg(buildplateName)
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
visible: printerConnected && Cura.MachineManager.printerOutputDevices[0].hotendIds != undefined && Cura.MachineManager.printerOutputDevices[0].buildplateId != "" && !isClusterPrinter
|
|
||||||
onTriggered:
|
|
||||||
{
|
|
||||||
var buildplateId = Cura.MachineManager.printerOutputDevices[0].buildplateId
|
|
||||||
var itemIndex = buildplateInstantiator.model.find("name", buildplateId)
|
|
||||||
if(itemIndex > -1)
|
|
||||||
{
|
|
||||||
Cura.MachineManager.setActiveVariantBuildplate(buildplateInstantiator.model.getItem(itemIndex).id)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MenuSeparator
|
|
||||||
{
|
|
||||||
visible: automaticBuildplate.visible
|
|
||||||
}
|
|
||||||
|
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
id: buildplateInstantiator
|
id: buildplateInstantiator
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue