mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Create and use logicalArticleFullscreenEnabled — so it can’t think it’s in fullscreen mode without fullscreen mode being allowed.
This commit is contained in:
@@ -147,7 +147,7 @@ class ArticleViewController: UIViewController {
|
||||
articleExtractorButton.buttonState = controller.articleExtractorButtonState
|
||||
|
||||
self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
|
||||
if AppDefaults.shared.articleFullscreenEnabled {
|
||||
if AppDefaults.shared.logicalArticleFullscreenEnabled {
|
||||
controller.hideBars()
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ class ArticleViewController: UIViewController {
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
let hideToolbars = AppDefaults.shared.articleFullscreenEnabled
|
||||
let hideToolbars = AppDefaults.shared.logicalArticleFullscreenEnabled
|
||||
if hideToolbars {
|
||||
currentWebViewController?.hideBars()
|
||||
} else {
|
||||
@@ -255,7 +255,7 @@ class ArticleViewController: UIViewController {
|
||||
|
||||
@objc func willEnterForeground(_ note: Notification) {
|
||||
// The toolbar will come back on you if you don't hide it again
|
||||
if AppDefaults.shared.articleFullscreenEnabled {
|
||||
if AppDefaults.shared.logicalArticleFullscreenEnabled {
|
||||
currentWebViewController?.hideBars()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user