From 6e91d27d9ae99acc7a44d5fde8e102ecd0a0bd3c Mon Sep 17 00:00:00 2001 From: Giganzo <158825920+Giganzo@users.noreply.github.com> Date: Mon, 23 Feb 2026 12:54:06 +0100 Subject: [PATCH] Fix empty navigate to script list button in Script Editor --- editor/script/script_editor_plugin.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index ef65c21922..e8edc39712 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -2082,14 +2082,22 @@ void ScriptEditor::_update_script_names() { } } + bool has_active_tab = false; + for (const _ScriptEditorItemData &sedata_i : sedata) { if (tab_container->get_current_tab() == sedata_i.index) { script_name_button->set_text(sedata_i.name); + script_name_button->show(); _calculate_script_name_button_size(); + has_active_tab = true; break; } } + if (!has_active_tab) { + script_name_button->hide(); + } + if (!waiting_update_names) { _update_members_overview(); _update_help_overview();