diff --git a/indra/llui/llconsole.cpp b/indra/llui/llconsole.cpp
index 549aa6bb4e..82ff89e442 100644
--- a/indra/llui/llconsole.cpp
+++ b/indra/llui/llconsole.cpp
@@ -175,6 +175,17 @@ void LLConsole::draw()
return;
}
+ // [FIRE-35039] Add flag to show/hide the on-screen console
+ // Get the Show On-screen Console flag from the Comm menu
+ static LLCachedControl showOnscreenConsole(*LLUI::getInstance()->mSettingGroups["config"], "FSShowOnscreenConsole");
+ // If the Show On-screen Console flag is disabled and the current console is the global console
+ // (Not a debug console), then don't try to draw
+ if (!showOnscreenConsole && this == gConsole)
+ {
+ return;
+ }
+ // [FIRE-35039]
+
// Session support
if (!mSessionSupport)
{
diff --git a/indra/newview/app_settings/commands.xml b/indra/newview/app_settings/commands.xml
index 73740b0c6d..7708f9a0c9 100644
--- a/indra/newview/app_settings/commands.xml
+++ b/indra/newview/app_settings/commands.xml
@@ -46,6 +46,8 @@
is_running_function="Floater.IsOpen"
is_running_parameters="build"
/>
+
+
+
Value
0
+
+ FSShowOnscreenConsole
+
+
FSAdvancedWorldmapRegionInfo