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:
Maurice Parker 2020-03-11 18:17:09 -06:00
parent 76d5f4a073
commit 27b1443def
1 changed files with 3 additions and 6 deletions

View File

@ -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()
} }