View Single Post
12/03/14, 04:00 AM   #56
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
@Randactyl
I'm running out of ideas. Tried to reproduce what BigM wrote about Sell in comments, but for me it works (now). It'll be some stupid obvious bug, obvious bugs are hard to find, they look like features


Originally Posted by circonian View Post
I do have one question though. I glanced at some changes you guys made & I'm unclear on why libfilters is doing:
Lua Code:
  1. PLAYER_INVENTORY:UpdateList(INVENTORY_BACKPACK)

Since libFilters is using the layoutData.additionalFilter, which runs when the layout is applied...the list gets Committed/automatically updated after the layout is applied, so why call UpdateList ever?
Yes and no. Advanced Filters change filters when the tab changes, in which case the inventory list is rebuilt anyway, so in AF this step could be avoided. But Item Saver has icons in the bottom of the inventory, which when toggled change the rules, and so they need to force inventory refresh.
  Reply With Quote