mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Prevent row selection on iPhone as keeping selected rows highlighted is an iPad only feature
This commit is contained in:
@@ -156,8 +156,10 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||
}
|
||||
|
||||
func updateArticleSelection(animate: Bool) {
|
||||
guard !coordinator.articles.isEmpty else { return }
|
||||
|
||||
guard traitCollection.userInterfaceIdiom == .pad && !coordinator.articles.isEmpty else {
|
||||
return
|
||||
}
|
||||
|
||||
if let indexPath = coordinator.currentArticleIndexPath {
|
||||
if tableView.indexPathForSelectedRow != indexPath {
|
||||
tableView.selectRow(at: indexPath, animated: animate, scrollPosition: .middle)
|
||||
|
||||
Reference in New Issue
Block a user