From 3b832a9c9aa5810aacc76b43e4012d9d7f93113a Mon Sep 17 00:00:00 2001 From: AR Date: Mon, 13 Apr 2026 20:10:46 +0500 Subject: [PATCH] Move script name to top (https://github.com/godotengine/godot/pull/86468) --- editor/script/script_editor_plugin.cpp | 62 ++++++++------------------ editor/script/script_editor_plugin.h | 2 - 2 files changed, 19 insertions(+), 45 deletions(-) diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index a5e97eece6d..f61abc0b9a4 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -738,25 +738,26 @@ void ScriptEditor::_go_to_tab(int p_idx) { c = tab_container->get_current_tab_control(); - if (Object::cast_to(c)) { - script_name_label->set_text(Object::cast_to(c)->get_name()); - script_icon->set_texture(Object::cast_to(c)->get_theme_icon()); + ScriptEditorBase *seb = Object::cast_to(c); + if (seb) { if (is_visible_in_tree()) { - Object::cast_to(c)->ensure_focus(); + seb->ensure_focus(); } - Ref