Seems to work, except for the tooltip (shows global value). CURA-2007

This commit is contained in:
Jack Ha 2016-08-04 19:23:23 +02:00
parent 30898f9642
commit c0dd19ce08
2 changed files with 3 additions and 6 deletions

View file

@ -155,7 +155,7 @@ Item {
onEntered: {
hoverTimer.stop();
var tooltipText = catalog.i18nc("@label", "This setting is always shared between all extruders. Changing it here will change the value for all extruders") + ".";
if ((resolve != "None") && (globalValue == null)) {
if ((resolve != "None") && (stackLevel != 0)) {
// We come here if a setting has a resolve and the setting is not manually edited.
tooltipText += " " + catalog.i18nc("@label", "The value is resolved from the individual value ") + value + ".";
}

View file

@ -107,14 +107,11 @@ SettingItem
target: input
property: "text"
value: {
if (propertyProvider.properties.resolve != "None") {
if ((propertyProvider.properties.resolve != "None") && (stackLevel != 0)) {
// We have a resolve function. Indicates that the setting is not settable per extruder and that
// we have to choose between the resolved value (default) and the global value
// (if user has explicitly set this).
if (definition.key == "material_bed_temperature") {
CuraApplication.log("## global value " + globalPropertyProvider.properties.value);
}
return (globalPropertyProvider.properties.value != null) ? globalPropertyProvider.properties.value : propertyProvider.properties.resolve;
return propertyProvider.properties.resolve;
} else {
return propertyProvider.properties.value;
}