mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
removed the preference made it a member of class platformphysics
CURA-10542
This commit is contained in:
parent
fbf21e2b6f
commit
f54d6099cd
5 changed files with 28 additions and 13 deletions
|
@ -299,6 +299,11 @@ class WorkspaceDialog(QObject):
|
|||
|
||||
Application.getInstance().getBackend().close()
|
||||
|
||||
@pyqtSlot(bool)
|
||||
def setDropToBuildPlateForModel(self, drop_to_buildplate: bool) -> None:
|
||||
CuraApplication.getInstance().getLocalDropToBuildplate(drop_to_buildplate)
|
||||
|
||||
|
||||
def setMaterialConflict(self, material_conflict: bool) -> None:
|
||||
if self._has_material_conflict != material_conflict:
|
||||
self._has_material_conflict = material_conflict
|
||||
|
|
|
@ -311,7 +311,7 @@ UM.Dialog
|
|||
id: checkDropModels
|
||||
text: catalog.i18nc("@text:window", "Drop models to buildplate")
|
||||
checked: UM.Preferences.getValue("physics/automatic_drop_down")
|
||||
onCheckedChanged: UM.Preferences.setValue("physics/per_model_drop", checked)
|
||||
onCheckedChanged: manager.setDropToBuildPlateForModel(checked)
|
||||
}
|
||||
function reloadValue()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue