1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fixed signal connection prints when moving docks, issue 5498

This commit is contained in:
Paulb23
2016-06-30 15:12:14 +01:00
parent d81b635957
commit 050a514799
4 changed files with 17 additions and 5 deletions

View File

@@ -99,8 +99,14 @@ void EditorDirDialog::_notification(int p_what) {
if (p_what==NOTIFICATION_ENTER_TREE) {
reload();
tree->connect("item_collapsed",this,"_item_collapsed",varray(),CONNECT_DEFERRED);
EditorFileSystem::get_singleton()->connect("filesystem_changed",this,"reload");
if (!tree->is_connected("item_collapsed",this,"_item_collapsed")) {
tree->connect("item_collapsed",this,"_item_collapsed",varray(),CONNECT_DEFERRED);
}
if (!EditorFileSystem::get_singleton()->is_connected("filesystem_changed",this,"reload")) {
EditorFileSystem::get_singleton()->connect("filesystem_changed",this,"reload");
}
}