diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 51d8095d3..73f87037a 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -1015,6 +1015,17 @@ Found in Advanced->Rendering->Info Displays Value 0 + LiruShowTransactionThreshold + + Comment + Threshold of money changes before which transaction notifications will not be shown. + Persist + 1 + Type + U32 + Value + 0 + LiruUseAdvancedMenuShortcut Comment diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 18a60fc3e..1c5ed208f 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -6315,6 +6315,8 @@ static void process_money_balance_reply_extended(LLMessageSystem* msg) return; } + if ((U32)amount < gSavedSettings.getU32("LiruShowTransactionThreshold")) return; // Don't show transactions of small amounts the user doesn't care about. + std::string reason = reason_from_transaction_type(transaction_type, item_description);