-remove (can be added back in editor settings) icons from property editor
-remove ".." from file dialog when opening res://, fixes #2994
This commit is contained in:
parent
46497c4508
commit
fbda3c5d88
3 changed files with 55 additions and 26 deletions
|
|
@ -435,6 +435,8 @@ void EditorFileDialog::update_file_list() {
|
|||
|
||||
}
|
||||
|
||||
String cdir = dir_access->get_current_dir();
|
||||
bool skip_pp = access==ACCESS_RESOURCES && cdir=="res://";
|
||||
|
||||
dir_access->list_dir_begin();
|
||||
|
||||
|
|
@ -455,7 +457,7 @@ void EditorFileDialog::update_file_list() {
|
|||
if (show_hidden || !ishidden) {
|
||||
if (!isdir)
|
||||
files.push_back(item);
|
||||
else
|
||||
else if (item!=".." || !skip_pp)
|
||||
dirs.push_back(item);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue