Only show "Custom Profile" header if there are custom profiles

CURA-6844
This commit is contained in:
Jaime van Kessel 2019-10-02 16:48:57 +02:00
parent c6850b4f73
commit ff3837bac5
No known key found for this signature in database
GPG Key ID: 3710727397403C91

View File

@ -134,7 +134,7 @@ Popup
renderType: Text.NativeRendering
height: visible ? contentHeight: 0
enabled: false
visible: profilesList.visibleChildren.length > 0
visible: profilesList.visibleChildren.length > 1
anchors.left: parent.left
anchors.leftMargin: UM.Theme.getSize("default_margin").width
}
@ -156,7 +156,7 @@ Popup
target: parent
property: "height"
value: parent.childrenRect.height
when: parent.visibleChildren.length > 0
when: parent.visibleChildren.length > 1
}
//Add all the custom profiles.