Add debug setting LiruShowTransactionThreshold for filtering out low amount transaction notifications.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user