mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 17:15:56 +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
|
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" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user