Add a settings menu option to collapse all categories

CURA-6959
This commit is contained in:
Nino van Hooff 2019-12-31 11:14:26 +01:00
parent 5c83ba0129
commit d780efd76c
3 changed files with 18 additions and 2 deletions

View file

@ -107,7 +107,7 @@ Button
height: UM.Theme.getSize("standard_arrow").height
sourceSize.height: width
color: UM.Theme.getColor("setting_control_button")
source: base.checked ? UM.Theme.getIcon("arrow_bottom") : UM.Theme.getIcon("arrow_left")
source: definition.expanded ? UM.Theme.getIcon("arrow_bottom") : UM.Theme.getIcon("arrow_left")
}
}
@ -226,7 +226,7 @@ Button
onClicked:
{
settingDefinitionsModel.expandRecursive(definition.key)
base.checked = true
base.checked = true //todo should not be necessary and also breaks binding, right?
base.showAllHiddenInheritedSettings(definition.key)
}