Browse Source

Merge pull request #16845 from Ultimaker/CURA-10967_support-type-with-support-material

CURA-10967
Casper Lamboo 1 year ago
parent
commit
8ea04f018b

+ 3 - 0
resources/qml/PrintSetupSelector/Recommended/RecommendedSupportSelector.qml

@@ -43,8 +43,10 @@ RecommendedSettingSection
 
             settingControl: Cura.SingleSettingComboBox
             {
+                id:support
                 width: parent.width
                 settingName: "support_structure"
+                propertyRemoveUnusedValue: false
             }
         },
         RecommendedSettingItem
@@ -60,6 +62,7 @@ RecommendedSettingSection
             settingControl: Cura.SingleSettingExtruderSelectorBar
             {
                 extruderSettingName: "support_extruder_nr"
+                onSelectedIndexChanged: support.forceUpdateSettings()
             }
         },
         RecommendedSettingItem

+ 5 - 0
resources/qml/Widgets/SingleSettingComboBox.qml

@@ -15,6 +15,7 @@ import Cura 1.7 as Cura
 Cura.ComboBox {
     textRole: "text"
     property alias settingName: propertyProvider.key
+    property alias propertyRemoveUnusedValue: propertyProvider.removeUnusedValue
 
     // If true, all extruders will have "settingName" property updated.
     // The displayed value will be read from the extruder with index "defaultExtruderIndex" instead of the machine.
@@ -87,6 +88,10 @@ Cura.ComboBox {
         }
 
     }
+    function forceUpdateSettings()
+    {
+        comboboxModel.updateModel();
+    }
 
     function updateSetting(value)
     {