mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Hide setting if global-only
In the per-object-setting panel, a setting is no longer displayed as settable per-object if it is global-only. Contributes to issue CURA-458.
This commit is contained in:
parent
a539d50830
commit
bf03d71427
1 changed files with 3 additions and 2 deletions
|
@ -202,6 +202,7 @@ Item {
|
||||||
|
|
||||||
width: parent.width;
|
width: parent.width;
|
||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
|
visible: model.visible && settingsColumn.height != 0 //If all children are hidden, the height is 0, and then the category header must also be hidden.
|
||||||
|
|
||||||
ToolButton {
|
ToolButton {
|
||||||
id: categoryHeader;
|
id: categoryHeader;
|
||||||
|
@ -237,8 +238,6 @@ Item {
|
||||||
|
|
||||||
property variant settingsModel: model.settings;
|
property variant settingsModel: model.settings;
|
||||||
|
|
||||||
visible: model.visible;
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: settingsColumn;
|
id: settingsColumn;
|
||||||
|
|
||||||
|
@ -272,6 +271,8 @@ Item {
|
||||||
x: model.depth * UM.Theme.sizes.default_margin.width;
|
x: model.depth * UM.Theme.sizes.default_margin.width;
|
||||||
text: model.name;
|
text: model.name;
|
||||||
tooltip: model.description;
|
tooltip: model.description;
|
||||||
|
visible: !model.global_only
|
||||||
|
height: model.global_only ? 0 : undefined
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var object_id = UM.ActiveTool.properties.Model.getItem(base.currentIndex).id;
|
var object_id = UM.ActiveTool.properties.Model.getItem(base.currentIndex).id;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue