mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 12:06:58 +01:00
Use better function for looking up article index
This commit is contained in:
parent
bf572633f8
commit
b7ba2c809c
@ -532,7 +532,7 @@ private extension MasterTimelineViewController {
|
||||
guard traitCollection.userInterfaceIdiom == .pad else {
|
||||
return
|
||||
}
|
||||
if let articleID = coordinator.currentArticle?.articleID, let index = coordinator.indexesForArticleIDs(Set([articleID])).first {
|
||||
if let articleID = coordinator.currentArticle?.articleID, let index = coordinator.indexForArticleID(articleID) {
|
||||
let indexPath = IndexPath(row: index, section: 0)
|
||||
tableView.selectRow(at: indexPath, animated: false, scrollPosition: .none)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user