Category setting icon now becomes invible if clicked

CURA-2361
This commit is contained in:
Jaime van Kessel 2016-09-16 13:58:26 +02:00
parent 132ed1d258
commit 4f547fff8d
3 changed files with 23 additions and 4 deletions

View file

@ -59,7 +59,19 @@ Button {
visible:
{
return Cura.SettingInheritanceManager.settingsWithInheritanceWarning.indexOf(definition.key) >= 0;
if(Cura.SettingInheritanceManager.settingsWithInheritanceWarning.indexOf(definition.key) >= 0)
{
var children_with_override = Cura.SettingInheritanceManager.getChildrenKeysWithOverride(definition.key)
for(var i = 0; i < children_with_override.length; i++)
{
if(!settingDefinitionsModel.getVisible(children_with_override[i]))
{
return true
}
}
return false
}
return false
}
height: parent.height / 2