From 15eff4adffb89a2157fbd74bd4665f9129bd72fb Mon Sep 17 00:00:00 2001 From: Darl Date: Thu, 24 Apr 2025 11:39:11 -0500 Subject: [PATCH] [FIRE-35294] minerjr's chat console hiding now works for toast mode as well --- indra/newview/llfloaterimnearbychathandler.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/indra/newview/llfloaterimnearbychathandler.cpp b/indra/newview/llfloaterimnearbychathandler.cpp index 75b9c0e052..4dc711fbe6 100644 --- a/indra/newview/llfloaterimnearbychathandler.cpp +++ b/indra/newview/llfloaterimnearbychathandler.cpp @@ -96,6 +96,13 @@ public: { ctrl->getSignal()->connect(boost::bind(&LLFloaterIMNearbyChatScreenChannel::updateToastFadingTime, this)); } + // [FIRE-35039 > FIRE-35294] Add flag to show/hide the on-screen console + ctrl = gSavedSettings.getControl("FSShowOnscreenConsole").get(); + if (ctrl) + { + ctrl->getSignal()->connect(boost::bind(&LLFloaterIMNearbyChatScreenChannel::removeToastsFromChannel, this)); + } + // [FIRE-35039 > FIRE-35294] Add flag to show/hide the on-screen console } void addChat (LLSD& chat); @@ -694,6 +701,14 @@ void LLFloaterIMNearbyChatHandler::processChat(const LLChat& chat_msg, } // + // [FIRE-35039 > FIRE-35294] Add flag to show/hide the on-screen console + static LLUICachedControl showOnscreenConsole("FSShowOnscreenConsole"); + if (!showOnscreenConsole) + { + return; + } + // [FIRE-35039 > FIRE-35294] + static LLCachedControl useChatBubbles(gSavedSettings, "UseChatBubbles"); static LLCachedControl fsBubblesHideConsoleAndToasts(gSavedSettings, "FSBubblesHideConsoleAndToasts"); // [FS communication UI]