mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 16:39:00 +08:00
Only show "Custom Profile" header if there are custom profiles
CURA-6844
This commit is contained in:
parent
c6850b4f73
commit
ff3837bac5
@ -134,7 +134,7 @@ Popup
|
|||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
height: visible ? contentHeight: 0
|
height: visible ? contentHeight: 0
|
||||||
enabled: false
|
enabled: false
|
||||||
visible: profilesList.visibleChildren.length > 0
|
visible: profilesList.visibleChildren.length > 1
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
@ -156,7 +156,7 @@ Popup
|
|||||||
target: parent
|
target: parent
|
||||||
property: "height"
|
property: "height"
|
||||||
value: parent.childrenRect.height
|
value: parent.childrenRect.height
|
||||||
when: parent.visibleChildren.length > 0
|
when: parent.visibleChildren.length > 1
|
||||||
}
|
}
|
||||||
|
|
||||||
//Add all the custom profiles.
|
//Add all the custom profiles.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user