Add debug setting LiruShowTransactionThreshold for filtering out low amount transaction notifications.

This commit is contained in:
Inusaito Sayori
2014-08-01 05:21:14 -04:00
parent a7c6c184da
commit 7ae1cd33be
2 changed files with 13 additions and 0 deletions

View File

@@ -1015,6 +1015,17 @@ Found in Advanced->Rendering->Info Displays</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>LiruShowTransactionThreshold</key>
<map>
<key>Comment</key>
<string>Threshold of money changes before which transaction notifications will not be shown.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>U32</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>LiruUseAdvancedMenuShortcut</key>
<map>
<key>Comment</key>

View File

@@ -6315,6 +6315,8 @@ static void process_money_balance_reply_extended(LLMessageSystem* msg)
return;
}
if ((U32)amount < gSavedSettings.getU32("LiruShowTransactionThreshold")) return; // <singu/> Don't show transactions of small amounts the user doesn't care about.
std::string reason =
reason_from_transaction_type(transaction_type, item_description);