UI: Remove Redundant Hidden File Check for Linux/Mac

Removal of an unnecessary check for hidden "dot" files on Linux/Mac.
This check is not needed here because the same call is used earlier -
in filelist_readjob_list_dir - which would have set FILE_ATTR_HIDDEN
for dot files.

Pull Request: https://projects.blender.org/blender/blender/pulls/120711
This commit is contained in:
Harley Acheson
2024-04-16 22:45:33 +02:00
committed by Harley Acheson
parent 38f70e9cf2
commit 6091127a29

View File

@@ -629,16 +629,13 @@ static bool is_filtered_hidden(const char *filename,
}
}
/* Check for _OUR_ "hidden" attribute. This not only mirrors OS-level hidden file
* attribute but is also set for Linux/Mac "dot" files. See `filelist_readjob_list_dir`.
*/
if ((filter->flags & FLF_HIDE_DOT) && (file->attributes & FILE_ATTR_HIDDEN)) {
return true; /* Ignore files with Hidden attribute. */
}
#ifndef WIN32
/* Check for unix-style names starting with period. */
if ((filter->flags & FLF_HIDE_DOT) && BLI_path_has_hidden_component(filename)) {
return true;
}
#endif
/* For data-blocks (but not the group directories), check the asset-only filter. */
if (!(file->typeflag & FILE_TYPE_DIR) && (file->typeflag & FILE_TYPE_BLENDERLIB) &&
(filter->flags & FLF_ASSETS_ONLY) && !(file->typeflag & FILE_TYPE_ASSET))