Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix favorites not remembering folding state in the FileSystem dock

Michael Alexsanderd6b3aef09968
diff --git a/editor/docks/filesystem_dock.cpp b/editor/docks/filesystem_dock.cpp
index 0b4f531b4b0..4ec33b51624 100644
--- a/editor/docks/filesystem_dock.cpp
+++ b/editor/docks/filesystem_dock.cpp
@@ -4384,6 +4384,8 @@ void FileSystemDock::load_layout_from_config(const Ref<ConfigFile> &p_layout, co
uncollapsed_tis = { "res://" };
}
+ favorites_item->set_collapsed(!uncollapsed_tis.has("Favorites"));
+
TreeItem *item = tree->get_item_with_metadata("res://", 0);
item->set_collapsed_recursive(true);
LocalVector<TreeItem *> ti_visit;