bags: remove redundant fake event loop

Full fake event based approach was disabled as it caused glitches
when moving bags. Removing the remaining loop by this commit as
the main functions is triggered in the OnEvent anyways.
This commit is contained in:
shagu
2018-11-25 18:45:40 +01:00
parent 62088b5ec3
commit 535181c036
-8
View File
@@ -61,13 +61,6 @@ pfUI:RegisterModule("bags", function ()
pfUI.bag:RegisterEvent("BANKFRAME_OPENED")
pfUI.bag:RegisterEvent("ITEM_LOCK_CHANGED")
pfUI.bag:SetScript("OnUpdate", function()
if this.fakeEvent and this.fakeEvent + 0.2 < GetTime() then
pfUI.bag:CheckFullUpdate()
this.fakeEvent = nil
end
end)
pfUI.bag:SetScript("OnEvent", function()
if event == "PLAYER_ENTERING_WORLD" then
pfUI.bag:CreateBags()
@@ -84,7 +77,6 @@ pfUI:RegisterModule("bags", function ()
event == "PLAYERBANKBAGSLOTS_CHANGED" or event == "BAG_UPDATE" or
event == "BANKFRAME_OPENED" or event == "BANKFRAME_CLOSED" then
pfUI.bag:CheckFullUpdate()
this.fakeEvent = GetTime()
end
if event == "BAG_UPDATE_COOLDOWN" then