Restore hidden folder behavior for project manager

This commit is contained in:
Ev1lbl0w 2022-04-06 22:37:33 +01:00
parent 9d3c8f04d4
commit 38fed916e7
No known key found for this signature in database
GPG key ID: B383693E3746E58A

View file

@ -789,7 +789,7 @@ void EditorFileDialog::update_file_list() {
}
} else if (!dir_access->current_is_hidden()) {
String full_path = cdir == "res://" ? item : dir_access->get_current_dir() + "/" + item;
if (dir_access->current_is_dir() && !EditorFileSystem::_should_skip_directory(full_path)) {
if (dir_access->current_is_dir() && (!EditorFileSystem::_should_skip_directory(full_path) || Engine::get_singleton()->is_project_manager_hint())) {
dirs.push_back(item);
} else {
files.push_back(item);