Make sure toolbar is showing when moving focus to search field. Fixes #4896.

This commit is contained in:
Brent Simmons committed 2026-07-28 10:26:59 -07:00
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
}