From 3a406dd451322024d82ee7bbf0168bf64112394d Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Thu, 4 Aug 2022 17:23:24 +0300 Subject: [PATCH] effects/private: Rename property 'hidden' to 'activeHidden' This is done to better reflect its relation to the complementary 'initialHidden' property. --- src/effects/private/qml/WindowHeapDelegate.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/effects/private/qml/WindowHeapDelegate.qml b/src/effects/private/qml/WindowHeapDelegate.qml index 3de83f8280..7bea0106ea 100644 --- a/src/effects/private/qml/WindowHeapDelegate.qml +++ b/src/effects/private/qml/WindowHeapDelegate.qml @@ -22,7 +22,7 @@ Item { readonly property bool selected: windowHeap.selectedIndex === index readonly property bool initialHidden: client.minimized || client.desktop !== KWinComponents.Workspace.currentDesktop - readonly property bool hidden: { + readonly property bool activeHidden: { if (windowHeap.showOnly === "activeClass") { // client.resourceName is not an actual String as comes from a QByteArray so === would fail return windowHeap.activeClass !== String(client.resourceName); @@ -65,7 +65,7 @@ Item { return "partial"; } if (windowHeap.effectiveOrganized) { - return hidden ? "active-hidden" : "active"; + return activeHidden ? "active-hidden" : "active"; } return initialHidden ? "initial-hidden" : "initial"; } @@ -150,7 +150,7 @@ Item { verticalAlignment: Text.AlignVCenter text: i18nd("kwin_effects", "Drag Down To Close") opacity: 1 - thumbSource.opacity - visible: !thumb.hidden + visible: !thumb.activeHidden } PlasmaCore.IconItem { @@ -162,7 +162,7 @@ Item { anchors.horizontalCenter: thumbSource.horizontalCenter anchors.bottom: thumbSource.bottom anchors.bottomMargin: -height / 4 - visible: !thumb.hidden && !activeDragHandler.active + visible: !thumb.activeHidden && !activeDragHandler.active PC3.Label { id: caption @@ -180,7 +180,7 @@ Item { ExpoCell { id: cell layout: windowHeap.layout - enabled: !thumb.hidden + enabled: !thumb.activeHidden naturalX: thumb.client.x naturalY: thumb.client.y naturalWidth: thumb.client.width