1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Merge pull request #16288 from guilhermefelipecgs/make_parent_folder_selectable

Make parent folder selectable
This commit is contained in:
Rémi Verschelde
2018-02-14 15:43:24 +01:00
committed by GitHub

View File

@@ -492,7 +492,7 @@ void FileSystemDock::_update_files(bool p_keep_selection) {
Ref<Texture> folderIcon = (use_thumbnails) ? folder_thumbnail : get_icon("folder", "FileDialog"); Ref<Texture> folderIcon = (use_thumbnails) ? folder_thumbnail : get_icon("folder", "FileDialog");
if (path != "res://") { if (path != "res://") {
files->add_item("..", folderIcon, false); files->add_item("..", folderIcon, true);
String bd = path.get_base_dir(); String bd = path.get_base_dir();
if (bd != "res://" && !bd.ends_with("/")) if (bd != "res://" && !bd.ends_with("/"))