mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 01:10:38 +00:00
Make sure toolbar is showing when moving focus to search field. Fixes #4896.
This commit is contained in:
1 parent
54a47c4a18
commit
5e2cdf63d8
1 file changed
+5
@@ -556,6 +556,11 @@ final class MainWindowController: NSWindowController, NSUserInterfaceValidations
|
||||
}
|
||||
|
||||
@IBAction func moveFocusToSearchField(_ sender: Any?) {
|
||||
// The search field lives in the toolbar — show it if hidden.
|
||||
// <https://github.com/Ranchero-Software/NetNewsWire/issues/4896>
|
||||
if let toolbar = window?.toolbar, !toolbar.isVisible {
|
||||
toolbar.isVisible = true
|
||||
}
|
||||
guard let searchField = currentSearchField else {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user