mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Don't insert the web view into the queue until the preload process has already started.
This commit is contained in:
parent
c1b108f541
commit
4c221058d8
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user