Update ConnectDialog::_filter_method_list to be case insensitive for search string

Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
Joel Kuntz 2024-05-05 12:37:19 -03:00
parent 7ebc866418
commit 94e5bada97

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;
}