mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -06:00
Seems to work, except for the tooltip (shows global value). CURA-2007
This commit is contained in:
parent
30898f9642
commit
c0dd19ce08
2 changed files with 3 additions and 6 deletions
|
@ -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 + ".";
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue