mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 00:30:51 +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() {
|
||||
if let webView = queue.lastObject as? PreloadedWebView {
|
||||
queue.removeLastObject()
|
||||
webView.ready { preloadedWebView in
|
||||
self.queue.removeLastObject()
|
||||
self.completion(preloadedWebView)
|
||||
}
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
|
Loading…
Reference in New Issue
Block a user