Hide .gdignore'd folders
This commit is contained in:
parent
44e73473c6
commit
057a0e00eb
1 changed files with 8 additions and 1 deletions
|
@ -762,12 +762,19 @@ void EditorFileDialog::update_file_list() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (show_hidden_files || !dir_access->current_is_hidden()) {
|
if (show_hidden_files) {
|
||||||
if (!dir_access->current_is_dir()) {
|
if (!dir_access->current_is_dir()) {
|
||||||
files.push_back(item);
|
files.push_back(item);
|
||||||
} else {
|
} else {
|
||||||
dirs.push_back(item);
|
dirs.push_back(item);
|
||||||
}
|
}
|
||||||
|
} 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)) {
|
||||||
|
dirs.push_back(item);
|
||||||
|
} else {
|
||||||
|
files.push_back(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue