diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-24 19:04:10 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-24 19:04:10 +0100 |
commit | e83628466777d4f4bae87a5f4a288c020f463930 (patch) | |
tree | e7e62de2a22ad6d2ee98f6c7d54a08f206e11b27 | |
parent | 93be29be06558a34d5774880155b891edce57b02 (diff) | |
parent | 51cf968e5620042af9f8a879f1d53f8942c8531a (diff) |
Merge pull request #69072 from souplamp/history-dock-check-connected
Add history dock to default editor layout, and prevent signal connecting multiple times
-rw-r--r-- | editor/editor_node.cpp | 2 | ||||
-rw-r--r-- | editor/history_dock.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 995cfb138c..7c297a39d0 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -7036,7 +7036,7 @@ EditorNode::EditorNode() { // Dock numbers are based on DockSlot enum value + 1. default_layout->set_value(docks_section, "dock_3", "Scene,Import"); default_layout->set_value(docks_section, "dock_4", "FileSystem"); - default_layout->set_value(docks_section, "dock_5", "Inspector,Node"); + default_layout->set_value(docks_section, "dock_5", "Inspector,Node,History"); for (int i = 0; i < vsplits.size(); i++) { default_layout->set_value(docks_section, "dock_split_" + itos(i + 1), 0); diff --git a/editor/history_dock.cpp b/editor/history_dock.cpp index 47b7e9f5d7..93599eff56 100644 --- a/editor/history_dock.cpp +++ b/editor/history_dock.cpp @@ -206,7 +206,7 @@ void HistoryDock::seek_history(int p_index) { void HistoryDock::_notification(int p_notification) { switch (p_notification) { - case NOTIFICATION_ENTER_TREE: { + case NOTIFICATION_READY: { EditorNode::get_singleton()->connect("scene_changed", callable_mp(this, &HistoryDock::on_history_changed)); } break; |