From dddaffe3ac55546e489ab43dfc780dd0f546d8ee Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 2 Dec 2025 17:45:03 -0700 Subject: [PATCH] plugin selector: if neither name nor tag buttons are enabled, include creator in search fields --- gtk2_ardour/plugin_selector.cc | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/plugin_selector.cc b/gtk2_ardour/plugin_selector.cc index 5d18b2cb59..59e2079977 100644 --- a/gtk2_ardour/plugin_selector.cc +++ b/gtk2_ardour/plugin_selector.cc @@ -384,20 +384,36 @@ PluginSelector::show_this_plugin (const PluginInfoPtr& info, const std::string& return false; } + bool search_name = _search_name_checkbox->get_active(); + bool search_tags = _search_tags_checkbox->get_active(); + bool search_creator = false; + + if (!search_name && !search_tags) { + search_name = true; + search_tags = true; + search_creator = true; + } + if (!searchstr.empty()) { - if (_search_name_checkbox->get_active()) { /* name contains */ + if (search_name) { std::string compstr = info->name; setup_search_string (compstr); maybe_show |= match_search_strings (compstr, searchstr); } - if (_search_tags_checkbox->get_active()) { /* tag contains */ + if (search_tags) { std::string compstr = manager.get_tags_as_string (info); setup_search_string (compstr); maybe_show |= match_search_strings (compstr, searchstr); } + if (search_creator) { + std::string compstr = info->creator; + setup_search_string (compstr); + maybe_show |= match_search_strings (compstr, searchstr); + } + if (!maybe_show) { return false; }