mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +01:00
Do not remove the view from the queue until it has navigated
This commit is contained in:
parent
f138908e43
commit
3f036e91d3
@ -112,8 +112,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
|||||||
|
|
||||||
func run() {
|
func run() {
|
||||||
if let webView = queue.lastObject as? PreloadedWebView {
|
if let webView = queue.lastObject as? PreloadedWebView {
|
||||||
queue.removeLastObject()
|
|
||||||
webView.ready { preloadedWebView in
|
webView.ready { preloadedWebView in
|
||||||
|
self.queue.removeLastObject()
|
||||||
self.completion(preloadedWebView)
|
self.completion(preloadedWebView)
|
||||||
}
|
}
|
||||||
self.operationDelegate?.operationDidComplete(self)
|
self.operationDelegate?.operationDidComplete(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user