From b34a04f723f818827cabb733b4d88c759bf4f8a0 Mon Sep 17 00:00:00 2001 From: jbwfu <75001777+jbwfu@users.noreply.github.com> Date: Sat, 13 Jun 2026 03:39:23 +0800 Subject: [PATCH] fix(clipboard): hide pin action while keeping saved indicator (#2626) --- .../Modals/Clipboard/ClipboardEntry.qml | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/quickshell/Modals/Clipboard/ClipboardEntry.qml b/quickshell/Modals/Clipboard/ClipboardEntry.qml index 439cdf8c..076f4d81 100644 --- a/quickshell/Modals/Clipboard/ClipboardEntry.qml +++ b/quickshell/Modals/Clipboard/ClipboardEntry.qml @@ -28,7 +28,7 @@ Rectangle { readonly property bool showPinAction: visibleEntryActions.includes("pin") readonly property bool showEditAction: visibleEntryActions.includes("edit") readonly property bool showDeleteAction: visibleEntryActions.includes("delete") - readonly property bool showPinnedIndicator: !showPinAction && effectivePinned + readonly property bool showPinnedIndicator: hasPinnedDuplicate && !showPinAction readonly property bool showAnyAction: showPinAction || showEditAction || showDeleteAction || showPinnedIndicator radius: Theme.cornerRadius @@ -72,20 +72,17 @@ Rectangle { spacing: Theme.spacingXS visible: root.showAnyAction - DankActionButton { - iconName: "push_pin" - iconSize: Theme.iconSize - 6 - iconColor: Theme.primary - backgroundColor: Theme.primarySelected + Item { + width: 40 + height: 40 visible: root.showPinnedIndicator - onClicked: { - if (entry.pinned) { - unpinRequested(entry); - return; - } - if (pinnedDuplicateEntry) { - unpinRequested(pinnedDuplicateEntry); - } + + // Status indicator only; the Pin action remains hidden. + DankIcon { + anchors.centerIn: parent + name: "push_pin" + size: Theme.iconSize - 6 + color: Theme.primary } }