added drop models to buildplate as a right click option

Also shortcut: ctrl+B

CURA-10542
This commit is contained in:
Saumya Jain 2024-02-27 13:45:10 +01:00
parent 86bf94cc31
commit 1338a562ef
8 changed files with 18 additions and 43 deletions

View file

@ -351,26 +351,6 @@ UM.Dialog
}
}
Row
{
id: dropToBuildPlate
width: parent.width
height: childrenRect.height
spacing: UM.Theme.getSize("default_margin").width
UM.CheckBox
{
id: checkDropModels
text: catalog.i18nc("@text:window", "Drop models to buildplate")
checked: UM.Preferences.getValue("physics/automatic_drop_down")
onCheckedChanged: manager.setDropToBuildPlateForModel(checked)
}
function reloadValue()
{
manager.setDropToBuildPlateForModel(checkDropModels.checked)
checkDropModels.checked = UM.Preferences.getValue("physics/automatic_drop_down")
}
}
Row
{
id: clearBuildPlateWarning
@ -493,7 +473,6 @@ UM.Dialog
materialSection.reloadValues()
profileSection.reloadValues()
printerSection.reloadValues()
dropToBuildPlate.reloadValue()
}
}
}