search: Simplify search options handling (#36233)

Release Notes:

- N/A
This commit is contained in:
Lukas Wirth 2025-08-15 12:34:54 +02:00 committed by GitHub
parent 4f0b00b0d9
commit d891348442
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 115 additions and 185 deletions

View file

@ -140,7 +140,7 @@ impl Render for QuickActionBar {
let search_button = editor.is_singleton(cx).then(|| {
QuickActionBarButton::new(
"toggle buffer search",
IconName::MagnifyingGlass,
search::SEARCH_ICON,
!self.buffer_search_bar.read(cx).is_dismissed(),
Box::new(buffer_search::Deploy::find()),
focus_handle.clone(),