plasmoid: use `generateMimeData` in `Backend`

CCBUG: 464528
work/fuf/bug464528
Fushan Wen 2 years ago
parent 218ff83986
commit e9269e5151
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA

@ -331,7 +331,7 @@ AbilityItem.BasicItem {
taskItem.contentItem.monochromizedItem.grabToImage((result) => { taskItem.contentItem.monochromizedItem.grabToImage((result) => {
root.dragSource = taskItem; root.dragSource = taskItem;
dragHelper.Drag.imageSource = result.url; dragHelper.Drag.imageSource = result.url;
dragHelper.Drag.mimeData = dragHelper.generateMimeData(model.MimeType, model.MimeData, model.LauncherUrlWithoutIcon); dragHelper.Drag.mimeData = backend.generateMimeData(model.MimeType, model.MimeData, model.LauncherUrlWithoutIcon);
dragHelper.Drag.active = true; dragHelper.Drag.active = true;
}); });
} else { } else {

@ -87,7 +87,7 @@ MouseArea {
pressY = -1; pressY = -1;
root.dragSource = taskItem; root.dragSource = taskItem;
dragHelper.Drag.imageSource = result.url; dragHelper.Drag.imageSource = result.url;
dragHelper.Drag.mimeData = dragHelper.generateMimeData(model.MimeType, model.MimeData, model.LauncherUrlWithoutIcon); dragHelper.Drag.mimeData = backend.generateMimeData(model.MimeType, model.MimeData, model.LauncherUrlWithoutIcon);
dragHelper.Drag.active = true; dragHelper.Drag.active = true;
}); });
} }

Loading…
Cancel
Save