mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix bug where full-screen-ness was getting forgotten and top and bottom toolbars were showing.
This commit is contained in:
@@ -163,8 +163,12 @@ class ArticleViewController: UIViewController {
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
let hideToolbar = AppDefaults.shared.articleFullscreenEnabled
|
||||
navigationController?.isToolbarHidden = hideToolbar
|
||||
let hideToolbars = AppDefaults.shared.articleFullscreenEnabled
|
||||
if hideToolbars {
|
||||
currentWebViewController?.hideBars()
|
||||
} else {
|
||||
currentWebViewController?.showBars()
|
||||
}
|
||||
super.viewWillAppear(animated)
|
||||
}
|
||||
|
||||
@@ -225,7 +229,6 @@ class ArticleViewController: UIViewController {
|
||||
starBarButtonItem.image = AppAssets.starOpenImage
|
||||
starBarButtonItem.accLabelText = NSLocalizedString("Star Article", comment: "Star Article")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: Notifications
|
||||
|
||||
Reference in New Issue
Block a user