mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
CURA-4525 change active build plate if that build plate does not exist anymore; disable context menu items for build plates when no selection
This commit is contained in:
parent
86eb9c73ba
commit
164e5fdc8e
2 changed files with 9 additions and 0 deletions
|
@ -47,6 +47,7 @@ Menu
|
|||
{
|
||||
model: Cura.BuildPlateModel
|
||||
MenuItem {
|
||||
enabled: UM.Selection.hasSelection
|
||||
text: Cura.BuildPlateModel.getItem(index).name;
|
||||
onTriggered: CuraActions.setBuildPlateForSelection(Cura.BuildPlateModel.getItem(index).buildPlateNumber);
|
||||
checkable: true
|
||||
|
@ -58,6 +59,7 @@ Menu
|
|||
}
|
||||
|
||||
MenuItem {
|
||||
enabled: UM.Selection.hasSelection
|
||||
text: "New build plate";
|
||||
onTriggered: {
|
||||
CuraActions.setBuildPlateForSelection(Cura.BuildPlateModel.maxBuildPlate + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue