mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Hide search controller when no items are present. Related to Issue #1195
This commit is contained in:
@@ -71,7 +71,9 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
applyChanges(animate: false)
|
||||
super.viewWillAppear(animated)
|
||||
if dataSource.snapshot().numberOfItems < 1 {
|
||||
navigationItem.searchController?.isActive = false
|
||||
}
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
|
||||
Reference in New Issue
Block a user