mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 07:48:53 -07:00
Category setting icon now becomes invible if clicked
CURA-2361
This commit is contained in:
parent
132ed1d258
commit
4f547fff8d
3 changed files with 23 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue