Merge pull request #63697 from YeldhamDev/script_elements_fix

Fix elements not being shown on first selected script/doc
This commit is contained in:
Rémi Verschelde 2022-07-31 01:14:57 +02:00 committed by GitHub
commit 66d1bb84c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2154,8 +2154,11 @@ void ScriptEditor::_update_script_names() {
}
if (tab_container->get_current_tab() == sedata_filtered[i].index) {
script_list->select(index);
_script_selected(index);
script_name_label->set_text(sedata_filtered[i].name);
script_icon->set_texture(sedata_filtered[i].icon);
ScriptEditorBase *se = _get_current_editor();
if (se) {
se->enable_editor();