mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Disables prefetching
This commit is contained in:
@@ -47,6 +47,7 @@ class NotificationsViewController: UIViewController {
|
||||
menu: notificationFilterMenu())
|
||||
|
||||
navigationItem.rightBarButtonItem = filterButton
|
||||
notificationsTableView.isPrefetchingEnabled = false
|
||||
|
||||
reloadNotificationTableView()
|
||||
|
||||
@@ -71,17 +72,13 @@ class NotificationsViewController: UIViewController {
|
||||
@objc
|
||||
private func updateCellsFrom(_ notification: Notification) {
|
||||
guard let webFeed = notification.userInfo?[UserInfoKey.webFeed] as? WebFeed else { return }
|
||||
print("NotificationTableView: Received WebFeedIcon for \(webFeed.nameForDisplay)")
|
||||
|
||||
let cell = notificationsTableView.visibleCells.filter({ ($0 as? NotificationsTableViewCell)?.feed == webFeed }).first as? NotificationsTableViewCell
|
||||
if cell != nil {
|
||||
if let indexPath = notificationsTableView.indexPath(for: cell!) {
|
||||
notificationsTableView.reconfigureRows(at: [indexPath])
|
||||
print("NotificationTableView: Reconfigured cell for \(webFeed.nameForDisplay)")
|
||||
return
|
||||
}
|
||||
} else {
|
||||
print("NotificationTableView: Cannot find cell for \(webFeed.nameForDisplay)")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user