From b1b7aa7aa2471435848e7b991a301bd340feb50f Mon Sep 17 00:00:00 2001 From: bbedward Date: Sun, 26 Jul 2026 19:45:45 -0400 Subject: [PATCH] Revert "dock: use required properties in dock item delegate, fixes context injection on Qt 6.8 (#2926)" This reverts commit b8e2ce1da82322f1d238ca3145d6e0dd42faf842. --- quickshell/Modules/Dock/DockApps.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/quickshell/Modules/Dock/DockApps.qml b/quickshell/Modules/Dock/DockApps.qml index 63e7c8526..d894fc9ff 100644 --- a/quickshell/Modules/Dock/DockApps.qml +++ b/quickshell/Modules/Dock/DockApps.qml @@ -479,8 +479,6 @@ Item { delegate: Item { id: delegateItem - required property var modelData - required property int index property var dockButton: { switch (itemData.type) { @@ -601,7 +599,7 @@ Item { height: delegateItem.height actualIconSize: root.iconSize dockApps: root - index: delegateItem.index + index: model.index } DockTrashButton { @@ -626,7 +624,7 @@ Item { appData: itemData contextMenu: root.contextMenu dockApps: root - index: delegateItem.index + index: model.index parentDockScreen: root.dockScreen showWindowTitle: itemData?.type === "window" || itemData?.type === "grouped" windowTitle: {