mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Disables prefetching
This commit is contained in:
@@ -31,7 +31,6 @@ class NotificationsTableViewCell: VibrantBasicTableViewCell {
|
||||
}
|
||||
|
||||
func configure(_ webFeed: WebFeed) {
|
||||
print("NotificationTableView: configuring cell: \(webFeed.nameForDisplay)")
|
||||
self.feed = webFeed
|
||||
var isOn = false
|
||||
if webFeed.isNotifyAboutNewArticles == nil {
|
||||
@@ -44,7 +43,6 @@ class NotificationsTableViewCell: VibrantBasicTableViewCell {
|
||||
notificationsLabel.text = webFeed.nameForDisplay
|
||||
notificationsImageView.image = IconImageCache.shared.imageFor(webFeed.feedID!)?.image
|
||||
notificationsImageView.layer.cornerRadius = 4
|
||||
print("NotificationTableView: configured cell: \(webFeed.nameForDisplay)")
|
||||
}
|
||||
|
||||
@objc
|
||||
|
||||
@@ -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