diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 0ae158392d..6983d4593e 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -3879,17 +3879,6 @@ Backup 0 - DebugShowUploadCost - - Comment - Show mesh upload cost - Persist - 1 - Type - Boolean - Value - 1 - DebugShowXUINames Comment @@ -20478,5 +20467,16 @@ Change of this parameter will affect the layout of buttons in notification toast Value 1 + FSShowUploadPaymentToast + + Comment + Show UploadPayment Notifications + Persist + 1 + Type + Boolean + Value + 1 + diff --git a/indra/newview/fsfloaterimport.cpp b/indra/newview/fsfloaterimport.cpp index 1f6e8b97dd..8e933c349b 100644 --- a/indra/newview/fsfloaterimport.cpp +++ b/indra/newview/fsfloaterimport.cpp @@ -1835,9 +1835,14 @@ void FSAssetResponder::uploadComplete(const LLSD& content) // and display something saying that it cost L$ LLStatusBar::sendMoneyBalanceRequest(); - LLSD args; - args["AMOUNT"] = llformat("%d", upload_price); - LLNotificationsUtil::add("UploadPayment", args); + // FIRE-10628 - Option to supress upload cost notification + if (gSavedSettings.getBOOL("FSShowUploadPaymentToast")) + { + LLSD args; + args["AMOUNT"] = llformat("%d", upload_price); + LLNotificationsUtil::add("UploadPayment", args); + } + // } if( item_folder_id.notNull() ) diff --git a/indra/newview/llassetuploadresponders.cpp b/indra/newview/llassetuploadresponders.cpp index 59a7f6b2b0..658dcfd90c 100644 --- a/indra/newview/llassetuploadresponders.cpp +++ b/indra/newview/llassetuploadresponders.cpp @@ -89,10 +89,15 @@ void on_new_single_inventory_upload_complete( // this upload costed us L$, update our balance // and display something saying that it cost L$ LLStatusBar::sendMoneyBalanceRequest(); - - LLSD args; - args["AMOUNT"] = llformat("%d", upload_price); - LLNotificationsUtil::add("UploadPayment", args); + + // FIRE-10628 - Option to supress upload cost notification + if (gSavedSettings.getBOOL("FSShowUploadPaymentToast")) + { + LLSD args; + args["AMOUNT"] = llformat("%d", upload_price); + LLNotificationsUtil::add("UploadPayment", args); + } + // } if( item_folder_id.notNull() ) diff --git a/indra/newview/skins/default/xui/en/menu_viewer.xml b/indra/newview/skins/default/xui/en/menu_viewer.xml index 63ee29a2d1..d8adbb135d 100644 --- a/indra/newview/skins/default/xui/en/menu_viewer.xml +++ b/indra/newview/skins/default/xui/en/menu_viewer.xml @@ -3070,14 +3070,14 @@ parameter="DebugShowTime" /> + label="Show Upload Transaction" + name="Show Upload Transaction"> + parameter="FSShowUploadPaymentToast" /> + parameter="FSShowUploadPaymentToast" /> +