removed the preference made it a member of class platformphysics

CURA-10542
This commit is contained in:
saumya.jain 2024-02-15 11:23:34 +01:00
parent fbf21e2b6f
commit f54d6099cd
5 changed files with 28 additions and 13 deletions

View file

@ -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

View file

@ -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()
{