Fix: Infill slider did not work at first Cura start

CURA-5071
This commit is contained in:
Aleksei S 2018-03-15 16:54:39 +01:00
parent 1cd26b790c
commit b8ab623c80

View File

@ -594,7 +594,9 @@ Item
// Update value only if the Recomended mode is Active, // 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 // Otherwise if I change the value in the Custom mode the Recomended view will try to repeat
// same operation // same operation
if (UM.Preferences.getValue("cura/active_mode") == 0) { var active_mode = UM.Preferences.getValue("cura/active_mode")
if (active_mode == 0 || active_mode == "simple") {
Cura.MachineManager.setSettingForAllExtruders("infill_sparse_density", "value", roundedSliderValue) Cura.MachineManager.setSettingForAllExtruders("infill_sparse_density", "value", roundedSliderValue)
} }
} }