mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 01:04:05 +01:00
Exit search if Go To Feed is selected. Issue #1557
This commit is contained in:
parent
3e604e0b34
commit
d68eccc55e
@ -199,6 +199,10 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
|||||||
updateUI()
|
updateUI()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func hideSearch() {
|
||||||
|
navigationItem.searchController?.isActive = false
|
||||||
|
}
|
||||||
|
|
||||||
func showSearchAll() {
|
func showSearchAll() {
|
||||||
navigationItem.searchController?.isActive = true
|
navigationItem.searchController?.isActive = true
|
||||||
navigationItem.searchController?.searchBar.selectedScopeButtonIndex = 1
|
navigationItem.searchController?.searchBar.selectedScopeButtonIndex = 1
|
||||||
|
@ -940,6 +940,10 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func discloseFeed(_ feed: WebFeed, animated: Bool, completion: (() -> Void)? = nil) {
|
func discloseFeed(_ feed: WebFeed, animated: Bool, completion: (() -> Void)? = nil) {
|
||||||
|
if isSearching {
|
||||||
|
masterTimelineViewController?.hideSearch()
|
||||||
|
}
|
||||||
|
|
||||||
masterFeedViewController.discloseFeed(feed, animated: animated) {
|
masterFeedViewController.discloseFeed(feed, animated: animated) {
|
||||||
completion?()
|
completion?()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user