mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 18:32:55 +00:00
Don't insert the web view into the queue until the preload process has already started.
This commit is contained in:
1 parent
c1b108f541
commit
4c221058d8
2 files changed
+2
-2
No files matched your search
@@ -57,8 +57,8 @@ class WebViewProviderReplenishQueueOperation: MainThreadOperation {
|
||||
func run() {
|
||||
while queue.count < minimumQueueDepth {
|
||||
let webView = PreloadedWebView(articleIconSchemeHandler: articleIconSchemeHandler)
|
||||
queue.insert(webView, at: 0)
|
||||
webView.preload()
|
||||
queue.insert(webView, at: 0)
|
||||
}
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
}
|
||||
|
||||
@@ -57,8 +57,8 @@ class WebViewProviderReplenishQueueOperation: MainThreadOperation {
|
||||
func run() {
|
||||
while queue.count < minimumQueueDepth {
|
||||
let webView = PreloadedWebView(articleIconSchemeHandler: articleIconSchemeHandler)
|
||||
queue.insert(webView, at: 0)
|
||||
webView.preload()
|
||||
queue.insert(webView, at: 0)
|
||||
}
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user