Merge pull request #91598 from Frozenfire92/select-method-search-insensitive

Update `ConnectDialog::_filter_method_list` to be case insensitive for search string
This commit is contained in:
Rémi Verschelde 2024-05-06 15:15:43 +02:00
commit d8aa2c65a9
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ List<MethodInfo> ConnectDialog::_filter_method_list(const List<MethodInfo> &p_me
List<MethodInfo> ret;
for (const MethodInfo &mi : p_methods) {
if (!p_search_string.is_empty() && !mi.name.contains(p_search_string)) {
if (!p_search_string.is_empty() && mi.name.findn(p_search_string) == -1) {
continue;
}