From 8afb06f7ae9459c9b36a5429b1b556e7d61e3b36 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Thu, 21 Apr 2022 11:55:42 +0200 Subject: [PATCH] Fix infill to 0% on upgrade to Cura 5.0. This is a weird one, fortunately Jaime had the idea that it had to do with a spurious update to the visual element of the slider. CURA-9127 --- .../Recommended/RecommendedInfillDensitySelector.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml index 434945e172..863e8c3900 100644 --- a/resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml +++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml @@ -172,7 +172,8 @@ Item // same operation const active_mode = UM.Preferences.getValue("cura/active_mode") - if (active_mode == 0 || active_mode == "simple") + if (visible // Workaround: 'visible' is checked because on startup in Windows it spuriously gets an 'onValueChanged' with value '0' if this isn't checked. + && (active_mode == 0 || active_mode == "simple")) { Cura.MachineManager.setSettingForAllExtruders("infill_sparse_density", "value", roundedSliderValue) Cura.MachineManager.resetSettingForAllExtruders("infill_line_distance")