From af6886e6ffcfb156e92a95b2992b3d531b9bee21 Mon Sep 17 00:00:00 2001 From: qiqi49 Date: Wed, 6 Mar 2024 09:14:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(extension):=E4=BF=AE=E5=A4=8D=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E5=BA=94=E7=94=A8=E7=BB=84=E4=B8=8D=E8=83=BD=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E6=8D=A2=E4=BD=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/extensions/FavoriteDelegate.qml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/qml/extensions/FavoriteDelegate.qml b/qml/extensions/FavoriteDelegate.qml index f2f736c..a3cb46a 100644 --- a/qml/extensions/FavoriteDelegate.qml +++ b/qml/extensions/FavoriteDelegate.qml @@ -29,8 +29,8 @@ UkuiItems.StyleBackground { anchors.horizontalCenter: parent.horizontalCenter paletteRole: Platform.Theme.Text useStyleTransparency: false - alpha: (delegateDropArea.enterSourceId !== model.id) - && delegateDropArea.containsDrag && favoriteView.dragTypeIsMerge ? 0.15 : 0 + alpha: ((delegateDropArea.enterSourceId !== model.id) + && delegateDropArea.containsDrag && favoriteView.dragTypeIsMerge) ? 0.15 : 0 z: -1 } @@ -43,13 +43,14 @@ UkuiItems.StyleBackground { // drag.source [itemLoader] onEntered: { // 拖拽对象为folder 或 左侧列表应用时 - if (drag.source.isFolder || !drag.source.sourceId) { + if (!drag.source.sourceId) { drag.accepted = false; return; } - - enterSourceId = drag.source.sourceId; - delegateDropTimer.running = true; + if (!drag.source.isFolder) { + enterSourceId = drag.source.sourceId; + delegateDropTimer.running = true; + } } onExited: { if (!drag.source.sourceId) {