CURA-4947 The value of the diameter and density were not correctly

stored in the properties dict.
This commit is contained in:
Diego Prado Gesto 2018-02-13 11:29:32 +01:00
parent 7493fae667
commit 9053282e8a

View file

@ -407,7 +407,10 @@ TabView
if (old_value != new_value) {
Cura.ContainerManager.setContainerMetaDataEntry(base.containerId, entry_name, new_value)
// make sure the UI properties are updated as well since we don't re-fetch the entire model here
properties[entry_name] = new_value
// When the entry_name is something like properties/diameter, we take the last part of the entry_name
var list = entry_name.split("/")
var key = list[list.length - 1]
properties[key] = new_value
}
}