Per object settings no longer show depth identation, revert/inherit buttons

CURA-1278
This commit is contained in:
Jaime van Kessel 2016-06-02 15:53:00 +02:00
parent 64e4cd0041
commit edd5eecc3d

View file

@ -45,6 +45,7 @@ Item {
{ {
Loader Loader
{ {
id: settingLoader
width: UM.Theme.getSize("setting").width; width: UM.Theme.getSize("setting").width;
height: UM.Theme.getSize("section").height; height: UM.Theme.getSize("section").height;
@ -57,6 +58,12 @@ Item {
//causing nasty issues when selecting different options. So disable asynchronous loading of enum type completely. //causing nasty issues when selecting different options. So disable asynchronous loading of enum type completely.
asynchronous: model.type != "enum" asynchronous: model.type != "enum"
onLoaded: {
settingLoader.item.showRevertButton = false
settingLoader.item.showInheritButton = false
settingLoader.item.doDepthIdentation = false
}
source: source:
{ {
switch(model.type) // TODO: This needs to be fixed properly. Got frustrated with it not working, so this is the patch job! switch(model.type) // TODO: This needs to be fixed properly. Got frustrated with it not working, so this is the patch job!