Skip to content

Commit 332154c

Browse files
yixinsharkdeepin-bot[bot]
authored andcommitted
fix: only drag application-tray plugin can activate application-tray action
as title Log: as title Pms: BUG-301129
1 parent a71d55e commit 332154c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ AppletItemButton {
167167
}
168168
Drag.supportedActions: Qt.MoveAction
169169
Drag.onActiveChanged: {
170-
DDT.TraySortOrderModel.actionsAlwaysVisible = Drag.active
170+
// only drag application-tray plugin can activate application-tray action
171+
if (model.surfaceId.startsWith("application-tray")) {
172+
DDT.TraySortOrderModel.actionsAlwaysVisible = Drag.active
173+
}
174+
171175
if (!Drag.active) {
172176
Panel.contextDragging = false
173177
// reset position on drop

0 commit comments

Comments
 (0)