CURA-4352 fix passing int values as float when changing slider value

This commit is contained in:
ChrisTerBeke 2017-09-27 13:13:55 +02:00
parent 11484bf6ad
commit aed5e631dc

View File

@ -354,8 +354,6 @@ Item
} }
} }
Item Item
{ {
id: infillCellRight id: infillCellRight
@ -405,7 +403,7 @@ Item
value: parseInt(infillDensity.properties.value) value: parseInt(infillDensity.properties.value)
onValueChanged: { onValueChanged: {
infillDensity.setPropertyValue("value", infillSlider.value) infillDensity.setPropertyValue("value", String(parseInt(infillSlider.value)))
} }
style: SliderStyle style: SliderStyle
@ -829,7 +827,6 @@ Item
UM.SettingPropertyProvider UM.SettingPropertyProvider
{ {
id: infillExtruderNumber id: infillExtruderNumber
containerStackId: Cura.MachineManager.activeStackId containerStackId: Cura.MachineManager.activeStackId
key: "infill_extruder_nr" key: "infill_extruder_nr"
watchedProperties: [ "value" ] watchedProperties: [ "value" ]