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

Fix Can't reopen signals panel immediately after connecting a signal #92996

This commit is contained in:
Hilderin
2024-06-12 20:51:51 -04:00
parent 475248d99d
commit 64ba2cf3a9
7 changed files with 12 additions and 21 deletions

View File

@@ -2856,6 +2856,10 @@ void ScriptEditor::_add_callback(Object *p_obj, const String &p_function, const
break;
}
// Move back to the previously edited node to reselect it in the Inspector and the NodeDock.
// We assume that the previous item is the node on which the callbacks were added.
EditorNode::get_singleton()->edit_previous_item();
}
void ScriptEditor::_save_editor_state(ScriptEditorBase *p_editor) {