The infill denstiy was updated twice, first in Custom view and then in Recomended view

CURA-5071
This commit is contained in:
Aleksei S 2018-03-13 11:41:48 +01:00
parent b90a9c490d
commit 73517cd176

View file

@ -516,7 +516,11 @@ Item
// Update the slider value to represent the rounded value
infillSlider.value = roundedSliderValue
Cura.MachineManager.setSettingForAllExtruders("infill_sparse_density", "value", roundedSliderValue)
// Update value only if the Recomended mode is Active,
// Otherwise if I change the value in the Custom mode the Recomended view will try to repeat
// same operation
if (UM.Preferences.getValue("cura/active_mode") == 0)
Cura.MachineManager.setSettingForAllExtruders("infill_sparse_density", "value", roundedSliderValue)
}
style: SliderStyle