summaryrefslogtreecommitdiff
path: root/editor/history_dock.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-24 19:04:10 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-24 19:04:10 +0100
commite83628466777d4f4bae87a5f4a288c020f463930 (patch)
treee7e62de2a22ad6d2ee98f6c7d54a08f206e11b27 /editor/history_dock.cpp
parent93be29be06558a34d5774880155b891edce57b02 (diff)
parent51cf968e5620042af9f8a879f1d53f8942c8531a (diff)
Merge pull request #69072 from souplamp/history-dock-check-connected
Add history dock to default editor layout, and prevent signal connecting multiple times
Diffstat (limited to 'editor/history_dock.cpp')
-rw-r--r--editor/history_dock.cpp2
1 files changed, 1 insertions, 1 deletions
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;