From 1be2b04093a1a68378e85439c72834c05181ef23 Mon Sep 17 00:00:00 2001 From: Hecklezz Date: Wed, 20 Aug 2025 03:10:50 +1000 Subject: [PATCH] Added debug setting to hide help button from floaters --- indra/llui/llfloater.cpp | 6 ++++-- indra/newview/app_settings/settings.xml | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index c33bf14354..548ee2037d 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -338,8 +338,10 @@ void LLFloater::initFloater(const Params& p) // Help button: '?' //SL-14050 Disable all Help question marks - // Nope! - mButtonsEnabled[BUTTON_HELP] = !mHelpTopic.empty();// false; + // Disable the help button only if the debug setting is on + static LLUICachedControl hide_help_buttons ("FSHideHelpButtons", false); + mButtonsEnabled[BUTTON_HELP] = !mHelpTopic.empty() && !hide_help_buttons;// false; + // // Minimize button only for top draggers if ( !mDragOnLeft && mCanMinimize ) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index e8d6fcdc6a..7531ea03c2 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -26762,5 +26762,16 @@ Change of this parameter will affect the layout of buttons in notification toast 0 + FSHideHelpButtons + + Comment + When enabled, hides the help button from floaters (requires restart) + Persist + 1 + Type + Boolean + Value + 0 +