Allow users to drop onto expanded folders. Fixes #2022

This commit is contained in:
Maurice Parker 2020-11-02 14:53:00 -06:00
parent 93cd9dd14b
commit f391eb1669

View File

@ -337,8 +337,8 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
return proposedDestinationIndexPath
}
// If this is a folder and isn't expanded or doesn't have any entries, let the users drop on it
if destNode.representedObject is Folder && (destNode.numberOfChildNodes == 0 || !coordinator.isExpanded(destNode)) {
// If this is a folder, let the users drop on it
if destNode.representedObject is Folder {
return proposedDestinationIndexPath
}