Add debug setting LiruHighlightNewInventory to prevent selection being changed on accepting new inventory.

This commit is contained in:
Inusaito Sayori
2014-08-27 07:58:08 -04:00
parent 9b930c8716
commit 9600319094
2 changed files with 12 additions and 0 deletions

View File

@@ -742,6 +742,17 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>LiruHighlightNewInventory</key>
<map>
<key>Comment</key>
<string>When false, new inventory items will not be highlighted upon being accepted.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>1</boolean>
</map>
<key>LiruLegacyDisplayMuteds</key>
<map>
<key>Comment</key>

View File

@@ -1261,6 +1261,7 @@ void open_inventory_offer(const uuid_vec_t& objects, const std::string& from_nam
LLInventoryView::showAgentInventory(TRUE);
}
if (!gSavedSettings.getBOOL("LiruHighlightNewInventory")) return;
////////////////////////////////////////////////////////////////////////////////
// Highlight item
LL_DEBUGS("Messaging") << "Highlighting" << obj_id << LL_ENDL;