summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2022-07-30 19:14:44 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2022-07-30 19:33:58 -0300
commitc9fe780239e7c2832cd73a6179a6e612f9bfca50 (patch)
tree53dcbf25b44dfebd6cb42fa6dc35129399c9d0d8
parent5595f2406a743a5a8f85d7e5642efa3c5ca18702 (diff)
Fix elements not being shown on first selected script/doc
-rw-r--r--editor/plugins/script_editor_plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 03de010f28..e2f5d459e0 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -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();