소스 검색

Make parent folder selectable. Fix #16253

Guilherme Felipe 7 년 전
부모
커밋
6e1c02b828
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/filesystem_dock.cpp

+ 1 - 1
editor/filesystem_dock.cpp

@@ -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("/"))