Fix bottom dock always opening a tab on startup

This commit is contained in:
Michael Alexsander committed 2026-03-25 15:00:28 -03:00
1 parent 64596092ae
commit 8dd7cc9a3a
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -9120,17 +9120,20 @@ EditorNode::EditorNode() {
const String scene_key = SceneTreeDock::get_singleton()->get_effective_layout_key();
const String import_key = ImportDock::get_singleton()->get_effective_layout_key();
default_layout->set_value(docks_section, "dock_3", vformat("%s,%s", scene_key, import_key));
default_layout->set_value(docks_section, "dock_3_selected_tab_idx", 0);
}
{
const String filesystem_key = filesystem_dock->get_effective_layout_key();
const String history_key = history_dock->get_effective_layout_key();
default_layout->set_value(docks_section, "dock_4", vformat("%s,%s", filesystem_key, history_key));
default_layout->set_value(docks_section, "dock_4_selected_tab_idx", 0);
}
{
const String inspector_key = InspectorDock::get_singleton()->get_effective_layout_key();
const String signals_key = SignalsDock::get_singleton()->get_effective_layout_key();
const String groups_key = GroupsDock::get_singleton()->get_effective_layout_key();
default_layout->set_value(docks_section, "dock_5", vformat("%s,%s,%s", inspector_key, signals_key, groups_key));
default_layout->set_value(docks_section, "dock_5_selected_tab_idx", 0);
}
int hsplits[] = { 0, dock_hsize, -dock_hsize, 0 };