Skip to content

Commit

Permalink
change to findn instead of two to_lower calls
Browse files Browse the repository at this point in the history
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
  • Loading branch information
Frozenfire92 and AThousandShips committed May 6, 2024
1 parent fcfa122 commit 9df26b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.to_lower().contains(p_search_string.to_lower())) {
if (!p_search_string.is_empty() && mi.name.findn(p_search_string) == -1) {
continue;
}

Expand Down

0 comments on commit 9df26b7

Please sign in to comment.