From bd39b29c1d4a3518f07c3b5d2d735e90f2081ce7 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sat, 23 Mar 2019 08:38:59 -0400 Subject: [PATCH] Feature Request: Add a notification when receiving items from Marketplace Turn this off with LiruReceivedItemsNotify --- indra/newview/app_settings/settings_ascent.xml | 11 +++++++++++ indra/newview/llviewermessage.cpp | 1 + 2 files changed, 12 insertions(+) diff --git a/indra/newview/app_settings/settings_ascent.xml b/indra/newview/app_settings/settings_ascent.xml index a11c8a970..de15d0b8c 100644 --- a/indra/newview/app_settings/settings_ascent.xml +++ b/indra/newview/app_settings/settings_ascent.xml @@ -1087,6 +1087,17 @@ Changing this setting only affects new text. Value 1 + LiruReceivedItemsNotify + + Comment + Whether or not to spawn a notification in addition to the chat message when you receive items from the marketplace. + Persist + 1 + Type + Boolean + Value + 1 + OBJExportNotifyFailed Comment diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 36406cdbc..0ab64e9ab 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -2263,6 +2263,7 @@ void translate_if_needed(std::string& message) message = LLTrans::getString(gift ? "ReceivedGift" : "ReceivedPurchase", gift ? LLSD().with("USER", match[1].str()).with("PRODUCT", match[2].str()).with("MESSAGE", match[3].str()) : LLSD().with("PRODUCT", match[1].str())); + if (gSavedSettings.getBOOL("LiruReceivedItemsNotify")) LLNotificationsUtil::add("SystemMessage", LLSD().with("MESSAGE", message)); } }