mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 22:35:54 +08:00
Merge pull request #20346 from Ultimaker/CURA-12443_units_updater
[CURA-12443] Fix value-units can now change visually/immediately on printer switch.
This commit is contained in:
commit
b9d9e93e93
@ -92,6 +92,8 @@ SettingItem
|
||||
|
||||
UM.Label
|
||||
{
|
||||
id: unitLabel
|
||||
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
@ -106,6 +108,16 @@ SettingItem
|
||||
horizontalAlignment: (input.effectiveHorizontalAlignment == Text.AlignLeft) ? Text.AlignRight : Text.AlignLeft
|
||||
textFormat: Text.PlainText
|
||||
color: UM.Theme.getColor("setting_unit")
|
||||
|
||||
Binding
|
||||
{
|
||||
target: unitLabel
|
||||
property: "text"
|
||||
value:
|
||||
{
|
||||
return propertyProvider.properties.unit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TextInput
|
||||
|
@ -321,7 +321,7 @@ Item
|
||||
|
||||
containerStackId: contents.activeMachineId
|
||||
key: model.key
|
||||
watchedProperties: [ "value", "enabled", "state", "validationState", "settable_per_extruder", "resolve" ]
|
||||
watchedProperties: [ "value", "enabled", "state", "validationState", "settable_per_extruder", "resolve", "unit" ]
|
||||
storeIndex: 0
|
||||
removeUnusedValue: model.resolve === undefined
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user