From 7ae1cd33bec4f30b0ada155425166747c17750e8 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Fri, 1 Aug 2014 05:21:14 -0400 Subject: [PATCH] Add debug setting LiruShowTransactionThreshold for filtering out low amount transaction notifications. --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llviewermessage.cpp | 2 ++ 2 files changed, 13 insertions(+) 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);