From bf70e8dfe7af91c0df225a63c5dc780b5e80c71f Mon Sep 17 00:00:00 2001 From: PanteraPolnocy Date: Fri, 11 Oct 2013 01:22:21 +0200 Subject: [PATCH] FIRE-6406: Feature to disable Object Return notification --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llviewermessage.cpp | 11 +++++++++++ .../skins/default/xui/en/panel_preferences_alerts.xml | 9 +++++++++ .../skins/default/xui/pl/panel_preferences_alerts.xml | 1 + 4 files changed, 32 insertions(+) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index d669704109..dd7db3c05d 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -21580,6 +21580,17 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + FSDisableReturnObjectNotification + + Comment + Disable 'Object has been returned to your inventory Lost and Found folder' notifications + Persist + 1 + Type + Boolean + Value + 0 + diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 459129e1b3..1304ddab51 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -3357,6 +3357,17 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) return; } + // FIRE-6406: Feature to disable Object Return notification + static LLCachedControl FSDisableReturnObjectNotification(gSavedSettings, "FSDisableReturnObjectNotification"); + if (FSDisableReturnObjectNotification) + { + if (message.find("been returned to your inventory") != -1) + { + return; + } + } + // + // Build a link to open the object IM info window. std::string location = ll_safe_string((char*)binary_bucket, binary_bucket_size-1); diff --git a/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml b/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml index ac099e880d..2c7c5e1cd7 100755 --- a/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml @@ -270,6 +270,15 @@ name="FSFlashOnScriptDialog" top_pad="5" width="160"/> + +