diff options
| author | Wilhem Barbier | 2017-12-27 15:49:19 +0000 |
|---|---|---|
| committer | Wilhem Barbier | 2017-12-27 15:49:19 +0000 |
| commit | 03beb9ac7de87ef2fc0ea3c50c2217a0cbd48453 (patch) | |
| tree | 0a260f540d153bc19ccd92b0f145987f387b4396 /editor/filesystem_dock.cpp | |
| parent | 5c636875e418fbf055ddcff8d682639d1f096d05 (diff) | |
| download | godot-03beb9ac7de87ef2fc0ea3c50c2217a0cbd48453.tar.gz godot-03beb9ac7de87ef2fc0ea3c50c2217a0cbd48453.tar.zst godot-03beb9ac7de87ef2fc0ea3c50c2217a0cbd48453.zip | |
Diffstat (limited to 'editor/filesystem_dock.cpp')
| -rw-r--r-- | editor/filesystem_dock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index dce5a10d6..812379fac 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -403,12 +403,12 @@ void FileSystemDock::_search(EditorFileSystemDirectory *p_path, List<FileInfo> * _search(p_path->get_subdir(i), matches, p_max_items); } - String match = search_box->get_text(); + String match = search_box->get_text().to_lower(); for (int i = 0; i < p_path->get_file_count(); i++) { String file = p_path->get_file(i); - if (file.find(match) != -1) { + if (file.to_lower().find(match) != -1) { FileInfo fi; fi.name = file; |
