fix: dragging files onto windowless apps was inconsistent

This commit is contained in:
lwouis
2024-10-08 21:16:28 +02:00
parent d0cd206f51
commit 0a9fe9bb89
+1
View File
@@ -236,6 +236,7 @@ class ThumbnailView: NSStackView {
// NSImageView instances are registered to drag-and-drop by default
thumbnail.unregisterDraggedTypes()
appIcon.unregisterDraggedTypes()
windowlessIcon.unregisterDraggedTypes()
// we only handle URLs (i.e. not text, image, or other draggable things)
registerForDraggedTypes([NSPasteboard.PasteboardType(kUTTypeURL as String)])
}