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

@ -509,7 +509,11 @@ UM.PreferencesPage
id: dropDownCheckbox
text: catalog.i18nc("@option:check", "Automatically drop models to the build plate")
checked: boolCheck(UM.Preferences.getValue("physics/automatic_drop_down"))
onCheckedChanged: UM.Preferences.setValue("physics/automatic_drop_down", checked)
onCheckedChanged:
{
UM.Preferences.setValue("physics/automatic_drop_down", checked)
CuraApplication.getLocalDropToBuildplate(checked)
}
}
}