diff options
author | Bartłomiej T. Listwon <blistwon@gmail.com> | 2021-03-22 14:44:47 +0100 |
---|---|---|
committer | Bartłomiej T. Listwon <blistwon@gmail.com> | 2021-03-22 18:11:36 +0100 |
commit | 5aa88afa5db6d35b5969c6df7a2ef849a27121b3 (patch) | |
tree | e65b5fd0346ba015ff675b40905306e5f1c3f23e | |
parent | 07f076fa4f2896415993bb8e3fb42128423de0d2 (diff) |
Change search results limit in FileSystem dock from 128 to 10000
-rw-r--r-- | editor/filesystem_dock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 43bfccc656..44ba4909a3 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -815,7 +815,8 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) { if (searched_string.length() > 0) { // Display the search results. - _search(EditorFileSystem::get_singleton()->get_filesystem(), &file_list, 128); + // Limit the number of results displayed to avoid an infinite loop. + _search(EditorFileSystem::get_singleton()->get_filesystem(), &file_list, 10000); } else { if (display_mode == DISPLAY_MODE_TREE_ONLY || always_show_folders) { // Display folders in the list. |