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)); } }