Skip to content

Commit

Permalink
Merge branch '5.5' into PPM-profile-updates-petg-abs
Browse files Browse the repository at this point in the history
  • Loading branch information
saumyaj3 authored Oct 6, 2023
2 parents d66be6d + 8ea04f0 commit 1bdff0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ RecommendedSettingSection

settingControl: Cura.SingleSettingComboBox
{
id:support
width: parent.width
settingName: "support_structure"
propertyRemoveUnusedValue: false
}
},
RecommendedSettingItem
Expand All @@ -60,6 +62,7 @@ RecommendedSettingSection
settingControl: Cura.SingleSettingExtruderSelectorBar
{
extruderSettingName: "support_extruder_nr"
onSelectedIndexChanged: support.forceUpdateSettings()
}
},
RecommendedSettingItem
Expand Down
5 changes: 5 additions & 0 deletions resources/qml/Widgets/SingleSettingComboBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -87,6 +88,10 @@ Cura.ComboBox {
}

}
function forceUpdateSettings()
{
comboboxModel.updateModel();
}

function updateSetting(value)
{
Expand Down

0 comments on commit 1bdff0f

Please sign in to comment.