You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
-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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user