From 469acbfd0c4f2131cc4d57fec8a1d9d02390563f Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Wed, 30 Oct 2019 16:13:04 +0100 Subject: Folders in FileSystem are not expanded on project save anymore If an item was selected in the FileSystem dock and its parent was collapsed the folder would be expanded when saving the project. --- editor/filesystem_dock.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index fa171ddb0c..5409ef65ea 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -71,11 +71,7 @@ bool FileSystemDock::_create_tree(TreeItem *p_parent, EditorFileSystemDirectory subdirectory_item->select(0); } - if ((path.begins_with(lpath) && path != lpath)) { - subdirectory_item->set_collapsed(false); - } else { - subdirectory_item->set_collapsed(uncollapsed_paths.find(lpath) < 0); - } + subdirectory_item->set_collapsed(uncollapsed_paths.find(lpath) < 0); if (searched_string.length() > 0 && dname.to_lower().find(searched_string) >= 0) { parent_should_expand = true; } -- cgit v1.2.3