File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,9 @@ Item {
143143 keys: [" text/x-dde-shell-tray-dnd-surfaceId" ]
144144 onEntered : function (dragEvent ) {
145145 let surfaceId = dragEvent .getDataAsString (" text/x-dde-shell-tray-dnd-surfaceId" )
146- console .log (surfaceId)
147- if (DDT .TraySortOrderModel .isDisplayedSurface (surfaceId)) {
146+ let source = dragEvent .getDataAsString (" text/x-dde-shell-tray-dnd-source" )
147+ console .log (surfaceId, source)
148+ if (source !== " " && DDT .TraySortOrderModel .isDisplayedSurface (surfaceId)) {
148149 dragEvent .accepted = false
149150 } else {
150151 dragEvent .accepted = true
Original file line number Diff line number Diff line change 2222 Component .onCompleted : {
2323 dragItem .Drag .mimeData = Qt .binding (function () {
2424 return {
25- " text/x-dde-shell-tray-dnd-surfaceId" : root .dragTextData
25+ " text/x-dde-shell-tray-dnd-surfaceId" : root .dragTextData ,
26+ " text/x-dde-shell-tray-dnd-source" : " quickPanel"
2627 }
2728 })
2829 dragItem .Drag .dragType = Drag .Automatic
You can’t perform that action at this time.
0 commit comments