From fb47a6394fac297b1b260385fb693f85cf2a7a92 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 4 Aug 2023 17:57:15 +0200 Subject: [PATCH] FIRE-33127: Made alphabetical sorting in "Attach to" menus optional --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llinventorybridge.cpp | 7 +++++-- indra/newview/llviewerattachmenu.cpp | 7 +++++-- .../default/xui/de/panel_preferences_firestorm.xml | 5 +++-- .../default/xui/en/panel_preferences_firestorm.xml | 8 ++++++++ 5 files changed, 32 insertions(+), 6 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index ae8a970891..fba8cc0056 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -26394,5 +26394,16 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + FSSortAttachmentSpotsAlphabetically + + Comment + Sorts the attachment spots in the "Attach to" menus alphabetically + Persist + 1 + Type + Boolean + Value + 1 + diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index d5570cd6f7..c9ed2693f4 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -7514,8 +7514,11 @@ void LLObjectBridge::buildContextMenu(LLMenuGL& menu, U32 flags) } // FIRE-21200: Attachment Points List in Alphabetical Order - attach_menu->getItems()->sort(LLViewerAttachMenu::sort()); - attach_hud_menu->getItems()->sort(LLViewerAttachMenu::sort()); + if (gSavedSettings.getBOOL("FSSortAttachmentSpotsAlphabetically")) + { + attach_menu->getItems()->sort(LLViewerAttachMenu::sort()); + attach_hud_menu->getItems()->sort(LLViewerAttachMenu::sort()); + } // } } diff --git a/indra/newview/llviewerattachmenu.cpp b/indra/newview/llviewerattachmenu.cpp index ed0a2fe342..cce9a5f7a4 100644 --- a/indra/newview/llviewerattachmenu.cpp +++ b/indra/newview/llviewerattachmenu.cpp @@ -90,8 +90,11 @@ void LLViewerAttachMenu::populateMenus(const std::string& attach_to_menu_name, c } // FIRE-21200: Attachment Points List in Alphabetical Order - attach_menu->getItems()->sort(LLViewerAttachMenu::sort()); - attach_hud_menu->getItems()->sort(LLViewerAttachMenu::sort()); + if (gSavedSettings.getBOOL("FSSortAttachmentSpotsAlphabetically")) + { + attach_menu->getItems()->sort(LLViewerAttachMenu::sort()); + attach_hud_menu->getItems()->sort(LLViewerAttachMenu::sort()); + } // } diff --git a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml index 7aa948e83a..9472846608 100644 --- a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml +++ b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml @@ -136,7 +136,7 @@ Textur - + @@ -162,7 +162,7 @@ - + Gegenstand aus Inventar hier ablegen @@ -239,6 +239,7 @@ + diff --git a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml index 1ccbb0ee84..f3cfd699eb 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml @@ -1646,6 +1646,14 @@ name="FSScriptInfoExtended" enabled_control="UseLSLBridge" control_name="FSScriptInfoExtended"/> +