Skip to content

Commit fb257ab

Browse files
wjyrichBLumia
authored andcommitted
fix: prevent duplicate taskbar entries during drag
1. Added check for drag source before processing dock request 2. Prevents duplicate entries when dragging between taskbars 3. Only processes dock request if source is not another taskbar 4. Maintains clean taskbar state during drag operations fix: 防止拖拽时任务栏出现重复条目 1. 在处理停靠请求前添加了对拖动源的检查 2. 防止在任务栏之间拖拽时出现重复条目 3. 仅当来源不是其他任务栏时才处理停靠请求 4. 在拖拽操作期间保持任务栏状态整洁
1 parent 467ddbb commit fb257ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

panels/dock/taskmanager/package/TaskManager.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ContainmentItem {
149149
let desktopId = drag.getDataAsString("text/x-dde-dock-dnd-appid")
150150
launcherDndDragSource = drag.getDataAsString("text/x-dde-dock-dnd-source")
151151
launcherDndDesktopId = desktopId
152-
if (taskmanager.Applet.requestDockByDesktopId(desktopId) === false) {
152+
if (launcherDndDragSource !== "taskbar" && taskmanager.Applet.requestDockByDesktopId(desktopId) === false) {
153153
resetDndState()
154154
}
155155
}

0 commit comments

Comments
 (0)