From a97dbc3ad2f86c7cf1bd859a00db0d97afe1b7cb Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 17 Sep 2025 02:09:15 +0200 Subject: [PATCH] Tweak the enum visual order for Sort Scripts By editor setting None is now displayed first to match the typical pattern where the "simplest"/least advanced option is first (even if it's not the default). This is a purely visual change and doesn't affect the underlying enum or existing settings. --- editor/settings/editor_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/settings/editor_settings.cpp b/editor/settings/editor_settings.cpp index 340beb7a125..34d50365e71 100644 --- a/editor/settings/editor_settings.cpp +++ b/editor/settings/editor_settings.cpp @@ -815,7 +815,7 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { _initial_set("text_editor/script_list/script_temperature_history_size", 15); _initial_set("text_editor/script_list/highlight_scene_scripts", true); _initial_set("text_editor/script_list/group_help_pages", true); - EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "text_editor/script_list/sort_scripts_by", 0, "Name,Path,None"); + EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "text_editor/script_list/sort_scripts_by", 0, "None:2,Name:0,Path:1"); EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "text_editor/script_list/list_script_names_as", 0, "Name,Parent Directory And Name,Full Path"); EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "text_editor/external/exec_path", "", ""); EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_PLACEHOLDER_TEXT, "text_editor/external/exec_flags", "{file}", "Call flags with placeholders: {project}, {file}, {col}, {line}.");