Commenting out feed context menus due to buggy implementation in Beta 6

This commit is contained in:
Maurice Parker 2019-08-20 05:43:39 -05:00
parent 87bef5cacf
commit 64fd5016a9

View File

@ -296,16 +296,16 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
}
override func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
guard let node = coordinator.nodeFor(indexPath), !(node.representedObject is PseudoFeed) else {
return nil
}
if node.representedObject is Feed {
return makeFeedContextMenu(indexPath: indexPath, includeDeleteRename: true)
} else {
return makeFolderContextMenu(indexPath: indexPath)
}
}
// override func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
// guard let node = coordinator.nodeFor(indexPath), !(node.representedObject is PseudoFeed) else {
// return nil
// }
// if node.representedObject is Feed {
// return makeFeedContextMenu(indexPath: indexPath, includeDeleteRename: true)
// } else {
// return makeFolderContextMenu(indexPath: indexPath)
// }
// }
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
coordinator.selectFeed(indexPath)