mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Restrict smart feeds from swipe commands
This commit is contained in:
parent
b6eb648f95
commit
0da3bca41e
@ -170,6 +170,14 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||
return cell
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
|
||||
if coordinator.nodeFor(indexPath)?.representedObject is PseudoFeed {
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
||||
|
||||
guard let nameProvider = coordinator.rootNode.childAtIndex(section)?.representedObject as? DisplayNameProvider else {
|
||||
|
Loading…
Reference in New Issue
Block a user