Feature Request: Add a notification when receiving items from Marketplace
Turn this off with LiruReceivedItemsNotify
This commit is contained in:
@@ -1087,6 +1087,17 @@ Changing this setting only affects new text.</string>
|
|||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</map>
|
</map>
|
||||||
|
<key>LiruReceivedItemsNotify</key>
|
||||||
|
<map>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>Whether or not to spawn a notification in addition to the chat message when you receive items from the marketplace.</string>
|
||||||
|
<key>Persist</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>Boolean</string>
|
||||||
|
<key>Value</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
</map>
|
||||||
<key>OBJExportNotifyFailed</key>
|
<key>OBJExportNotifyFailed</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
|
|||||||
@@ -2263,6 +2263,7 @@ void translate_if_needed(std::string& message)
|
|||||||
message = LLTrans::getString(gift ? "ReceivedGift" : "ReceivedPurchase",
|
message = LLTrans::getString(gift ? "ReceivedGift" : "ReceivedPurchase",
|
||||||
gift ? LLSD().with("USER", match[1].str()).with("PRODUCT", match[2].str()).with("MESSAGE", match[3].str())
|
gift ? LLSD().with("USER", match[1].str()).with("PRODUCT", match[2].str()).with("MESSAGE", match[3].str())
|
||||||
: LLSD().with("PRODUCT", match[1].str()));
|
: LLSD().with("PRODUCT", match[1].str()));
|
||||||
|
if (gSavedSettings.getBOOL("LiruReceivedItemsNotify")) LLNotificationsUtil::add("SystemMessage", LLSD().with("MESSAGE", message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user