[FileSystem Dock] Add option to show some unsupported files in the dock.

This commit is contained in:
bruvzg 2024-09-05 12:12:59 +03:00
parent b6223c0df0
commit 22b19c433f
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
8 changed files with 51 additions and 8 deletions

View file

@ -271,7 +271,7 @@ bool FileSystemDock::_create_tree(TreeItem *p_parent, EditorFileSystemDirectory
List<FileInfo> file_list;
for (int i = 0; i < p_dir->get_file_count(); i++) {
String file_type = p_dir->get_file_type(i);
if (file_type != "TextFile" && _is_file_type_disabled_by_feature_profile(file_type)) {
if (file_type != "TextFile" && file_type != "OtherFile" && _is_file_type_disabled_by_feature_profile(file_type)) {
// If type is disabled, file won't be displayed.
continue;
}