Fix reset to formula button and use new icon

CURA-5407
This commit is contained in:
Lipu Fei 2018-06-13 12:25:52 +02:00
parent 3a00ddb01d
commit cf0efea4c3
2 changed files with 55 additions and 2 deletions

View file

@ -264,7 +264,7 @@ Item {
{
// Another special case. The setting that is overriden is only 1 instance container deeper,
// so we can remove it.
propertyProvider.removeFromContainer(0)
propertyProvider.removeFromContainer(last_entry - 1)
}
else
{
@ -281,7 +281,7 @@ Item {
color: UM.Theme.getColor("setting_control_button")
hoverColor: UM.Theme.getColor("setting_control_button_hover")
iconSource: UM.Theme.getIcon("notice");
iconSource: UM.Theme.getIcon("formula");
onEntered: { hoverTimer.stop(); base.showTooltip(catalog.i18nc("@label", "This setting is normally calculated, but it currently has an absolute value set.\n\nClick to restore the calculated value.")) }
onExited: base.showTooltip(base.tooltipText);