diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-11-07 13:20:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-07 13:20:26 +0100 |
commit | b964e911b67769257959b7a592faf55b90c44ea9 (patch) | |
tree | e6cfe4d5857d67bac9fda97cba9b990481014deb | |
parent | 8e76c5701b5af2b185eab504786cb66b28a01b4a (diff) | |
parent | 469acbfd0c4f2131cc4d57fec8a1d9d02390563f (diff) |
Merge pull request #33183 from silvanocerza/filesystem-tree-expand
Folders in FileSystem are not expanded on project save anymore
-rw-r--r-- | editor/filesystem_dock.cpp | 6 |
1 files changed, 1 insertions, 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; } |