mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
CURA-4352 fix passing int values as float when changing slider value
This commit is contained in:
parent
11484bf6ad
commit
aed5e631dc
@ -354,8 +354,6 @@ Item
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Item
|
||||
{
|
||||
id: infillCellRight
|
||||
@ -405,7 +403,7 @@ Item
|
||||
value: parseInt(infillDensity.properties.value)
|
||||
|
||||
onValueChanged: {
|
||||
infillDensity.setPropertyValue("value", infillSlider.value)
|
||||
infillDensity.setPropertyValue("value", String(parseInt(infillSlider.value)))
|
||||
}
|
||||
|
||||
style: SliderStyle
|
||||
@ -829,7 +827,6 @@ Item
|
||||
UM.SettingPropertyProvider
|
||||
{
|
||||
id: infillExtruderNumber
|
||||
|
||||
containerStackId: Cura.MachineManager.activeStackId
|
||||
key: "infill_extruder_nr"
|
||||
watchedProperties: [ "value" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user