Explorar el Código

Merge pull request #36071 from RandomShaper/imvu/ignore_hidden_find

Ignore hidden files and directories in find in files
Rémi Verschelde hace 5 años
padre
commit
ed51c55625
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      editor/find_in_files.cpp

+ 3 - 1
editor/find_in_files.cpp

@@ -235,9 +235,11 @@ void FindInFiles::_scan_dir(String path, PoolStringArray &out_folders) {
 		if (file == "")
 			break;
 
-		// Ignore special dirs and hidden dirs (such as .git and .import)
+		// Ignore special dirs (such as .git and .import)
 		if (file == "." || file == ".." || file.begins_with("."))
 			continue;
+		if (dir->current_is_hidden())
+			continue;
 
 		if (dir->current_is_dir())
 			out_folders.append(file);