浏览代码

Merge pull request #42745 from Pineapple/search-results-limit

Remove search results limit in FileSystem dock
Rémi Verschelde 4 年之前
父节点
当前提交
bc75fd509a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      editor/filesystem_dock.cpp

+ 2 - 1
editor/filesystem_dock.cpp

@@ -815,7 +815,8 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
 
 
 		if (searched_string.length() > 0) {
 		if (searched_string.length() > 0) {
 			// Display the search results.
 			// 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 {
 		} else {
 			if (display_mode == DISPLAY_MODE_TREE_ONLY || always_show_folders) {
 			if (display_mode == DISPLAY_MODE_TREE_ONLY || always_show_folders) {
 				// Display folders in the list.
 				// Display folders in the list.