[Core] Add case-insensitive String::containsn

This commit is contained in:
A Thousand Ships committed 2024-05-08 12:48:01 +02:00
1 parent 281fe39929
commit b4c6cc7d82
23 files changed
+64 -32

No files matched your search

+1 -1
View File
@@ -374,7 +374,7 @@ void ScriptEditorQuickOpen::_update_search() {
for (int i = 0; i < functions.size(); i++) {
String file = functions[i];
if ((search_box->get_text().is_empty() || file.findn(search_box->get_text()) != -1)) {
if ((search_box->get_text().is_empty() || file.containsn(search_box->get_text()))) {
TreeItem *ti = search_options->create_item(root);
ti->set_text(0, file);
if (root->get_first_child() == ti) {