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) {