mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 00:43:46 +00:00
[Core] Add case-insensitive String::containsn
This commit is contained in:
parent
281fe39929
commit
b4c6cc7d82
23 changed files with 64 additions and 32 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue