From 135d534d218a481d9b0a72575535bf556f5d9ae6 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 19 May 2017 20:20:55 +0200 Subject: [PATCH] Undo the confusing chat console fading time being controlled by a chat toast setting --- indra/newview/llviewercontrol.cpp | 6 ++---- indra/newview/llviewerwindow.cpp | 6 +----- .../newview/skins/default/xui/en/panel_preferences_chat.xml | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp index 42b1324349..fba992cf1b 100644 --- a/indra/newview/llviewercontrol.cpp +++ b/indra/newview/llviewercontrol.cpp @@ -375,9 +375,7 @@ static bool handleChatPersistTimeChanged(const LLSD& newvalue) { if(gConsole) { - // Changed for FIRE-805 - //gConsole->setLinePersistTime((F32) newvalue.asReal()); - gConsole->setLinePersistTime((F32) newvalue.asInteger()); + gConsole->setLinePersistTime((F32) newvalue.asReal()); } return true; } @@ -1006,7 +1004,7 @@ void settings_setup_listeners() gSavedSettings.getControl("RenderPerformanceTest")->getSignal()->connect(boost::bind(&handleRenderPerfTestChanged, _2)); gSavedSettings.getControl("TextureMemory")->getSignal()->connect(boost::bind(&handleVideoMemoryChanged, _2)); gSavedSettings.getControl("ChatConsoleFontSize")->getSignal()->connect(boost::bind(&handleChatFontSizeChanged, _2)); - gSavedSettings.getControl("NearbyToastLifeTime")->getSignal()->connect(boost::bind(&handleChatPersistTimeChanged, _2)); + gSavedSettings.getControl("ChatPersistTime")->getSignal()->connect(boost::bind(&handleChatPersistTimeChanged, _2)); gSavedSettings.getControl("ConsoleMaxLines")->getSignal()->connect(boost::bind(&handleConsoleMaxLinesChanged, _2)); gSavedSettings.getControl("UploadBakedTexOld")->getSignal()->connect(boost::bind(&handleUploadBakedTexOldChanged, _2)); gSavedSettings.getControl("UseOcclusion")->getSignal()->connect(boost::bind(&handleUseOcclusionChanged, _2)); diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 3380650091..a4d74b5034 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -2093,11 +2093,7 @@ void LLViewerWindow::initBase() cp.parse_urls(true); // Enable URL parsing for the chat console cp.background_image("Rounded_Square"); // Configurable background for different console types cp.session_support(true); // Session support - // , have console respect/reuse NearbyToastLifeTime for the length popup chat messages are displayed. - //cp.persist_time(gSavedSettings.getF32("ChatPersistTime")); - cp.persist_time((F32)gSavedSettings.getS32("NearbyToastLifeTime")); - // - + cp.persist_time(gSavedSettings.getF32("ChatPersistTime")); cp.font_size_index(gSavedSettings.getS32("ChatConsoleFontSize")); cp.follows.flags(FOLLOWS_LEFT | FOLLOWS_RIGHT | FOLLOWS_BOTTOM); gConsole = LLUICtrlFactory::create(cp); diff --git a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml index 659667cf6f..e7f5d4b42a 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml @@ -254,12 +254,12 @@ label="Use full width of screen for console"/>