mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Move from using views for the queue to using an array and remove unneeded flush of queue
This commit is contained in:
@@ -225,7 +225,7 @@ class ArticleViewController: UIViewController {
|
||||
}
|
||||
|
||||
@objc func contentSizeCategoryDidChange(_ note: Notification) {
|
||||
resetWebViewController()
|
||||
currentWebViewController?.fullReload()
|
||||
}
|
||||
|
||||
@objc func willEnterForeground(_ note: Notification) {
|
||||
@@ -470,13 +470,4 @@ private extension ArticleViewController {
|
||||
return controller
|
||||
}
|
||||
|
||||
func resetWebViewController() {
|
||||
coordinator.webViewProvider.flushQueue()
|
||||
coordinator.webViewProvider.replenishQueueIfNeeded()
|
||||
if let controller = currentWebViewController {
|
||||
controller.fullReload()
|
||||
self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user