Remove the internal folder type from the dragged types registration. Since folders can’t be moved inside other folders, we don’t actually accept folder drops. This will have to be revisited once we have multiple accounts, though — you might drag a folder from one account to another.
This commit is contained in:
parent
2769c93c20
commit
0a20b26ed5
|
@ -45,7 +45,7 @@ import RSCore
|
|||
outlineView.dataSource = dataSource
|
||||
outlineView.setDraggingSourceOperationMask(.move, forLocal: true)
|
||||
outlineView.setDraggingSourceOperationMask(.copy, forLocal: false)
|
||||
outlineView.registerForDraggedTypes([FeedPasteboardWriter.feedUTIInternalType, FolderPasteboardWriter.folderUTIInternalType, FeedPasteboardWriter.feedUTIType])
|
||||
outlineView.registerForDraggedTypes([FeedPasteboardWriter.feedUTIInternalType, FeedPasteboardWriter.feedUTIType])
|
||||
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(containerChildrenDidChange(_:)), name: .ChildrenDidChange, object: nil)
|
||||
|
|
Loading…
Reference in New Issue