mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change to not animate on timeline fetcher changes
This commit is contained in:
@@ -119,16 +119,16 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||
reloadAllVisibleCells()
|
||||
}
|
||||
|
||||
func reloadArticles() {
|
||||
applyChanges(animate: true) { [weak self] in
|
||||
self?.updateArticleSelection()
|
||||
func reloadArticles(animate: Bool) {
|
||||
applyChanges(animate: animate) { [weak self] in
|
||||
self?.updateArticleSelection(animate: animate)
|
||||
}
|
||||
}
|
||||
|
||||
func updateArticleSelection() {
|
||||
func updateArticleSelection(animate: Bool) {
|
||||
if let indexPath = coordinator.currentArticleIndexPath {
|
||||
if tableView.indexPathForSelectedRow != indexPath {
|
||||
tableView.selectRow(at: indexPath, animated: true, scrollPosition: .middle)
|
||||
tableView.selectRow(at: indexPath, animated: animate, scrollPosition: .middle)
|
||||
}
|
||||
}
|
||||
updateUI()
|
||||
|
||||
Reference in New Issue
Block a user