CURA-4525 Added an option to turn on the UI elements of multi build plate

This commit is contained in:
Jack Ha 2017-11-15 17:00:19 +01:00
parent 864f417723
commit e2a663992c
5 changed files with 34 additions and 9 deletions

View file

@ -31,7 +31,9 @@ Menu
MenuSeparator {}
MenuItem { action: Cura.Actions.homeCamera; }
MenuSeparator {}
MenuSeparator {
visible: UM.Preferences.getValue("cura/use_multi_build_plate")
}
Instantiator
{
model: Cura.BuildPlateModel
@ -41,6 +43,7 @@ Menu
checkable: true;
checked: Cura.BuildPlateModel.getItem(index).buildPlateNumber == Cura.BuildPlateModel.activeBuildPlate;
exclusiveGroup: buildPlateGroup;
visible: UM.Preferences.getValue("cura/use_multi_build_plate")
}
onObjectAdded: base.insertItem(index, object);
onObjectRemoved: base.removeItem(object)