Remove dispatch code that didn't seem to help and caused us to not be able to find the correct view controller when setting the article. Issue #1881
This commit is contained in:
parent
76d5f4a073
commit
27b1443def
|
@ -112,13 +112,10 @@ class ArticleViewController: UIViewController {
|
||||||
}
|
}
|
||||||
articleExtractorButton.buttonState = controller.articleExtractorButtonState
|
articleExtractorButton.buttonState = controller.articleExtractorButtonState
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
|
||||||
self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
|
if AppDefaults.articleFullscreenEnabled {
|
||||||
if AppDefaults.articleFullscreenEnabled {
|
controller.hideBars()
|
||||||
controller.hideBars()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateUI()
|
updateUI()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue