bags: remove update faction event

This event was introduced as a hackfix to
provide proper repaints of the bags. There
was an issue that bags are not fully loaded
on PLAYER_ENTERING_WORLD, therefore the
later triggered UPDATE_FACTION was used.

As the bagframes have seen alot of rewrite
and cleanups, it should be save to remove this.
This commit is contained in:
shagu
2016-12-31 15:02:26 +01:00
parent 782f94b063
commit 4726c93c30
+1 -2
View File
@@ -49,7 +49,6 @@ pfUI:RegisterModule("bags", function ()
pfUI.bag = CreateFrame("Frame", "pfUIBag")
pfUI.bag:RegisterEvent("PLAYER_ENTERING_WORLD")
pfUI.bag:RegisterEvent("UPDATE_FACTION")
pfUI.bag:RegisterEvent("BAG_UPDATE")
pfUI.bag:RegisterEvent("PLAYERBANKSLOTS_CHANGED")
pfUI.bag:RegisterEvent("PLAYERBANKBAGSLOTS_CHANGED")
@@ -60,7 +59,7 @@ pfUI:RegisterModule("bags", function ()
pfUI.bag:RegisterEvent("ITEM_LOCK_CHANGED")
pfUI.bag:SetScript("OnEvent", function()
if event == "PLAYER_ENTERING_WORLD" or event == "UPDATE_FACTION" then
if event == "PLAYER_ENTERING_WORLD" then
pfUI.bag:CreateBags()
pfUI.bag.right:Hide()