Merge pull request #93110 from Hilderin/fix-signal-panel-after-connection

Fix Can't reopen signals panel immediately after connecting a signal
This commit is contained in:
Rémi Verschelde 2024-06-19 10:10:14 +02:00
commit a50b535988
No known key found for this signature in database
GPG key ID: C3336907360768E1
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) {