diff --git a/containments/desktop/package/contents/ui/FolderViewLayer.qml b/containments/desktop/package/contents/ui/FolderViewLayer.qml --- a/containments/desktop/package/contents/ui/FolderViewLayer.qml +++ b/containments/desktop/package/contents/ui/FolderViewLayer.qml @@ -241,6 +241,8 @@ // propagates recursively) and that confuses the Label, hence the temp property. readonly property bool active: (plasmoid.configuration.labelMode != 0) + readonly property bool showPin: root.isPopup && plasmoid.compactRepresentationItem && plasmoid.compactRepresentationItem.visible + width: parent.width height: active ? labelHeight : 0 @@ -254,15 +256,11 @@ } } - Connections { - target: root - - onIsPopupChanged: { - if (windowPin == null && root.isPopup) { - windowPin = windowPinComponent.createObject(label); - } else if (upButton != null) { - windowPin.destroy(); - } + onShowPinChanged: { + if (!windowPin && showPin) { + windowPin = windowPinComponent.createObject(label); + } else if (windowPin) { + windowPin.destroy(); } } @@ -322,7 +320,7 @@ anchors.right: parent.right - visible: root.isPopup + visible: label.showPin width: root.isPopup ? Math.round(units.gridUnit * 1.25) : 0 height: width @@ -333,7 +331,7 @@ } Component.onCompleted: { - if (root.isPopup) { + if (label.showPin) { windowPin = windowPinComponent.createObject(label); } }