Only make separator visible if the element above and below it are visible

The behaviour should be the same, if it was implemented correctly previously.

Contributes to issue CURA-4241.
This commit is contained in:
Ghostkeeper 2017-08-31 15:47:29 +02:00
parent e38ec9d5e8
commit 0fc40d571a
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -97,7 +97,7 @@ Rectangle
Rectangle {
id: headerSeparator
width: parent.width
visible: !monitoringPrint && !hideSettings
visible: settingsModeSelection.visible && header.visible
height: visible ? UM.Theme.getSize("sidebar_lining").height : 0
color: UM.Theme.getColor("sidebar_lining")
anchors.top: header.bottom