mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-23 17:47:17 +01:00
Hide .gdignore'd folders
(cherry picked from commit 057a0e00ebb3a7cbfd5692363c9d219156f0373c)
This commit is contained in:
parent
168b1c2ae5
commit
5dbc95691c
@ -786,12 +786,19 @@ void EditorFileDialog::update_file_list() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (show_hidden_files || !dir_access->current_is_hidden()) {
|
||||
if (show_hidden_files) {
|
||||
if (!dir_access->current_is_dir()) {
|
||||
files.push_back(item);
|
||||
} else {
|
||||
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 New Issue
Block a user