The extrudersCHanged signal was incorrectly being emitted before the global stack had updated. This was causing the extruderIds to always return the old extruderIds to connected qml components.

The setting slider was incorrectly setting the slider value when updating the model.

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-12-06 10:37:06 +01:00
parent c495f0de3f
commit 3ddebe7a84
3 changed files with 9 additions and 6 deletions

View file

@ -83,9 +83,7 @@ RowLayout
function roundSliderValueUpdateSetting()
{
// If the user interacts with the slider we round the value and update the setting.
print("roundSliderValueUpdateSetting()")
const roundedSliderValue = roundToNearestTen ? Math.round(settingSlider.value / 10) * 10 : Math.round(settingSlider.value)
settingSlider.value = roundedSliderValue
updateSetting(roundedSliderValue)
}