From 206d4a0fb30394b234ccb40d2f62f8cc5b693a06 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 10 Oct 2025 21:09:31 +0200 Subject: [PATCH] Move script name to top --- editor/script/script_editor_plugin.cpp | 67 +++++++++----------------- editor/script/script_editor_plugin.h | 2 - 2 files changed, 23 insertions(+), 46 deletions(-) diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index fc68eab34fc..c6677dc7a6f 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -736,25 +736,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